PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ sfcgal_orientation()

Datum sfcgal_orientation ( PG_FUNCTION_ARGS  )

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

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

Referenced by sfcgal_is_planar().

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