PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ sfcgal_volume()

Datum sfcgal_volume ( PG_FUNCTION_ARGS  )

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

644 {
645  GSERIALIZED *input;
646  sfcgal_geometry_t *geom;
647  double result;
648 
650 
651  input = (GSERIALIZED*) PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
652  geom = POSTGIS2SFCGALGeometry(input);
653 
654  result = sfcgal_geometry_volume(geom);
655  sfcgal_geometry_delete(geom);
656 
657  PG_FREE_IF_COPY(input, 0);
658 
659  PG_RETURN_FLOAT8(result);
660 }
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: