PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ sfcgal_volume()

Datum sfcgal_volume ( PG_FUNCTION_ARGS  )

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

414 {
415  GSERIALIZED *input;
416  sfcgal_geometry_t *geom;
417  double result;
418 
420 
421  input = (GSERIALIZED *)PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
422  geom = POSTGIS2SFCGALGeometry(input);
423 
424  result = sfcgal_geometry_volume(geom);
425  sfcgal_geometry_delete(geom);
426 
427  PG_FREE_IF_COPY(input, 0);
428 
429  PG_RETURN_FLOAT8(result);
430 }
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: