PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ LWGEOM_has_arc()

Datum LWGEOM_has_arc ( PG_FUNCTION_ARGS  )

Definition at line 50 of file lwgeom_sqlmm.c.

References LWGEOM_curve_segmentize(), lwgeom_free(), lwgeom_from_gserialized(), lwgeom_has_arc(), and PG_FUNCTION_INFO_V1().

51 {
52  GSERIALIZED *geom = PG_GETARG_GSERIALIZED_P(0);
53  LWGEOM *lwgeom = lwgeom_from_gserialized(geom);
54  uint32 result = lwgeom_has_arc(lwgeom);
55  lwgeom_free(lwgeom);
56  PG_RETURN_BOOL(result == 1);
57 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1099
int lwgeom_has_arc(const LWGEOM *geom)
Definition: lwstroke.c:54
Here is the call graph for this function: