PostGIS  3.0.0dev-r@@SVN_REVISION@@

◆ sfcgal_orientation()

Datum sfcgal_orientation ( PG_FUNCTION_ARGS  )

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

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

Referenced by sfcgal_is_planar().

224 {
225  GSERIALIZED *input;
226  sfcgal_geometry_t *geom;
227  int result;
228 
230 
231  input = PG_GETARG_GSERIALIZED_P(0);
232  geom = POSTGIS2SFCGALGeometry(input);
233 
234  result = sfcgal_geometry_orientation(geom);
235  sfcgal_geometry_delete(geom);
236 
237  PG_FREE_IF_COPY(input, 0);
238 
239  PG_RETURN_INT32(result);
240 }
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: