PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ sfcgal_volume()

Datum sfcgal_volume ( PG_FUNCTION_ARGS  )

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

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

Referenced by sfcgal_union3D().

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