PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ sfcgal_area()

Datum sfcgal_area ( PG_FUNCTION_ARGS  )

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

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

References POSTGIS2SFCGALGeometry(), and sfcgal_postgis_init().

Here is the call graph for this function: