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

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

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

142  {
144  sfcgal_geometry_t *geom;
145  double result;
146 
148 
149  input = (GSERIALIZED*) PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
150  geom = POSTGIS2SFCGALGeometry(input);
151 
152  result = sfcgal_geometry_area(geom);
153  sfcgal_geometry_delete(geom);
154 
155  PG_FREE_IF_COPY(input, 0);
156 
157  PG_RETURN_FLOAT8(result);
158 }
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: