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

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

References POSTGIS2SFCGALGeometry(), and sfcgal_postgis_init().

149  {
150  GSERIALIZED *input;
151  sfcgal_geometry_t *geom;
152  double result;
153 
155 
156  input = PG_GETARG_GSERIALIZED_P(0);
157  geom = POSTGIS2SFCGALGeometry(input);
158 
159  result = sfcgal_geometry_area(geom);
160  sfcgal_geometry_delete(geom);
161 
162  PG_FREE_IF_COPY(input, 0);
163 
164  PG_RETURN_FLOAT8(result);
165 }
sfcgal_geometry_t * POSTGIS2SFCGALGeometry(GSERIALIZED *pglwgeom)
void sfcgal_postgis_init(void)

Here is the call graph for this function: