PostGIS  2.5.0beta1dev-r@@SVN_REVISION@@

◆ sfcgal_area3D()

Datum sfcgal_area3D ( PG_FUNCTION_ARGS  )

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

References PG_FUNCTION_INFO_V1(), POSTGIS2SFCGALGeometry(), sfcgal_is_planar(), and sfcgal_postgis_init().

Referenced by sfcgal_area().

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)
Here is the call graph for this function:
Here is the caller graph for this function: