PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ LWGEOM_has_arc()

Datum LWGEOM_has_arc ( PG_FUNCTION_ARGS  )

Definition at line 51 of file lwgeom_sqlmm.c.

52{
53 GSERIALIZED *geom = PG_GETARG_GSERIALIZED_P(0);
54 LWGEOM *lwgeom = lwgeom_from_gserialized(geom);
55 uint32 result = lwgeom_has_arc(lwgeom);
56 lwgeom_free(lwgeom);
57 PG_RETURN_BOOL(result == 1);
58}
char result[OUT_DOUBLE_BUFFER_SIZE]
Definition cu_print.c:267
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
Definition lwgeom.c:1246
int lwgeom_has_arc(const LWGEOM *geom)
Geometry includes at least one actual circular arc.
Definition lwstroke.c:55

References lwgeom_free(), lwgeom_from_gserialized(), lwgeom_has_arc(), and result.

Here is the call graph for this function: