PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ sfcgal_area3D()

Datum sfcgal_area3D ( PG_FUNCTION_ARGS  )

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

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

Referenced by sfcgal_area().

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