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

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

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

205 {
207  sfcgal_geometry_t *geom;
208  int result;
209 
211 
212  input = (GSERIALIZED*) PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
213  geom = POSTGIS2SFCGALGeometry(input);
214 
215  result = sfcgal_geometry_orientation(geom);
216  sfcgal_geometry_delete(geom);
217 
218  PG_FREE_IF_COPY(input, 0);
219 
220  PG_RETURN_INT32(result);
221 }
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: