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

Definition at line 183 of file postgis/lwgeom_sfcgal.c.

References input(), POSTGIS2SFCGALGeometry(), result, and sfcgal_postgis_init().

184 {
186  sfcgal_geometry_t *geom;
187  int result;
188 
190 
191  input = (GSERIALIZED*) PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
192  geom = POSTGIS2SFCGALGeometry(input);
193 
194  result = sfcgal_geometry_is_planar(geom);
195  sfcgal_geometry_delete(geom);
196 
197  PG_FREE_IF_COPY(input, 0);
198 
199  PG_RETURN_BOOL(result);
200 }
sfcgal_geometry_t * POSTGIS2SFCGALGeometry(GSERIALIZED *pglwgeom)
static int input(void)
char ** result
Definition: liblwgeom.h:218
LWGEOM * geom
void sfcgal_postgis_init(void)

Here is the call graph for this function: