PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ sfcgal_volume()

Datum sfcgal_volume ( PG_FUNCTION_ARGS  )

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

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

Referenced by sfcgal_union3D().

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:
Here is the caller graph for this function: