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

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

References POSTGIS2SFCGALGeometry(), and sfcgal_postgis_init().

202 {
203  GSERIALIZED *input;
204  sfcgal_geometry_t *geom;
205  int result;
206 
208 
209  input = PG_GETARG_GSERIALIZED_P(0);
210  geom = POSTGIS2SFCGALGeometry(input);
211 
212  result = sfcgal_geometry_is_planar(geom);
213  sfcgal_geometry_delete(geom);
214 
215  PG_FREE_IF_COPY(input, 0);
216 
217  PG_RETURN_BOOL(result);
218 }
sfcgal_geometry_t * POSTGIS2SFCGALGeometry(GSERIALIZED *pglwgeom)
void sfcgal_postgis_init(void)

Here is the call graph for this function: