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

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

References POSTGIS2SFCGALGeometry(), and sfcgal_postgis_init().

632 {
633  GSERIALIZED *input;
634  sfcgal_geometry_t *geom;
635  double result;
636 
638 
639  input = (GSERIALIZED*) PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
640  geom = POSTGIS2SFCGALGeometry(input);
641 
642  result = sfcgal_geometry_volume(geom);
643  sfcgal_geometry_delete(geom);
644 
645  PG_FREE_IF_COPY(input, 0);
646 
647  PG_RETURN_FLOAT8(result);
648 }
sfcgal_geometry_t * POSTGIS2SFCGALGeometry(GSERIALIZED *pglwgeom)
void sfcgal_postgis_init(void)

Here is the call graph for this function: