PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ sfcgal_area3D()

Datum sfcgal_area3D ( PG_FUNCTION_ARGS  )

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

182  {
183  GSERIALIZED *input;
184  sfcgal_geometry_t *geom;
185  double result;
186 
188 
189  input = PG_GETARG_GSERIALIZED_P(0);
190  geom = POSTGIS2SFCGALGeometry(input);
191 
192  result = sfcgal_geometry_area_3d(geom);
193  sfcgal_geometry_delete(geom);
194 
195  PG_FREE_IF_COPY(input, 0);
196 
197  PG_RETURN_FLOAT8(result);
198 }
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: