PostGIS  2.1.10dev-r@@SVN_REVISION@@
Datum LWGEOM_has_arc ( PG_FUNCTION_ARGS  )

Definition at line 38 of file lwgeom_sqlmm.c.

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

39 {
40  GSERIALIZED *geom = (GSERIALIZED *)PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
41  LWGEOM *lwgeom = lwgeom_from_gserialized(geom);
42  uint32 result = lwgeom_has_arc(lwgeom);
43  lwgeom_free(lwgeom);
44  PG_RETURN_BOOL(result == 1);
45 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1006
char ** result
Definition: liblwgeom.h:218
unsigned int uint32
Definition: shpopen.c:274
LWGEOM * geom
int lwgeom_has_arc(const LWGEOM *geom)
Definition: lwsegmentize.c:42

Here is the call graph for this function: