PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ sfcgal_volume()

Datum sfcgal_volume ( PG_FUNCTION_ARGS  )

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

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

Referenced by sfcgal_union3D().

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