PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ sfcgal_is_planar()

Datum sfcgal_is_planar ( PG_FUNCTION_ARGS  )

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

References PG_FUNCTION_INFO_V1(), POSTGIS2SFCGALGeometry(), sfcgal_orientation(), and sfcgal_postgis_init().

Referenced by sfcgal_area3D().

191 {
192  GSERIALIZED *input;
193  sfcgal_geometry_t *geom;
194  int result;
195 
197 
198  input = PG_GETARG_GSERIALIZED_P(0);
199  geom = POSTGIS2SFCGALGeometry(input);
200 
201  result = sfcgal_geometry_is_planar(geom);
202  sfcgal_geometry_delete(geom);
203 
204  PG_FREE_IF_COPY(input, 0);
205 
206  PG_RETURN_BOOL(result);
207 }
sfcgal_geometry_t * POSTGIS2SFCGALGeometry(GSERIALIZED *pglwgeom)
void sfcgal_postgis_init(void)
Here is the call graph for this function:
Here is the caller graph for this function: