PostGIS  2.5.0dev-r@@SVN_REVISION@@
Datum sfcgal_volume ( PG_FUNCTION_ARGS  )

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

References POSTGIS2SFCGALGeometry(), and sfcgal_postgis_init().

643 {
644  GSERIALIZED *input;
645  sfcgal_geometry_t *geom;
646  double result;
647 
649 
650  input = (GSERIALIZED*) PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
651  geom = POSTGIS2SFCGALGeometry(input);
652 
653  result = sfcgal_geometry_volume(geom);
654  sfcgal_geometry_delete(geom);
655 
656  PG_FREE_IF_COPY(input, 0);
657 
658  PG_RETURN_FLOAT8(result);
659 }
sfcgal_geometry_t * POSTGIS2SFCGALGeometry(GSERIALIZED *pglwgeom)
void sfcgal_postgis_init(void)

Here is the call graph for this function: