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

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

References POSTGIS2SFCGALGeometry(), and sfcgal_postgis_init().

160  {
161  GSERIALIZED *input;
162  sfcgal_geometry_t *geom;
163  double result;
164 
166 
167  input = PG_GETARG_GSERIALIZED_P(0);
168  geom = POSTGIS2SFCGALGeometry(input);
169 
170  result = sfcgal_geometry_area(geom);
171  sfcgal_geometry_delete(geom);
172 
173  PG_FREE_IF_COPY(input, 0);
174 
175  PG_RETURN_FLOAT8(result);
176 }
sfcgal_geometry_t * POSTGIS2SFCGALGeometry(GSERIALIZED *pglwgeom)
void sfcgal_postgis_init(void)

Here is the call graph for this function: