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

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

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

163  {
165  sfcgal_geometry_t *geom;
166  double result;
167 
169 
170  input = (GSERIALIZED*) PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
171  geom = POSTGIS2SFCGALGeometry(input);
172 
173  result = sfcgal_geometry_area_3d(geom);
174  sfcgal_geometry_delete(geom);
175 
176  PG_FREE_IF_COPY(input, 0);
177 
178  PG_RETURN_FLOAT8(result);
179 }
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: