25.30 SDO_GEOM.SDO_VOLUME
Format
SDO_GEOM.SDO_VOLUME( geom IN SDO_GEOMETRY, tol IN NUMBER [, unit IN VARCHAR2] ) RETURN NUMBER;
Description
Returns the volume of a three-dimensional solid.
Parameters
- geom
-
Geometry object.
- tol
-
Tolerance value (see Tolerance).
- unit
-
Unit of measurement: a quoted string with
unit=
and volume unit (for example,'unit=CUBIC_FOOT'
or'unit=CUBIC_METER'
). For a list of volume units, enter the following query:SELECT short_name FROM mdsys.sdo_units_of_measure WHERE unit_of_meas_type = 'volume';
See Unit of Measurement Support for more information about unit of measurement specification.
If this parameter is not specified, the unit of measurement associated with the data is assumed.
Usage Notes
This function works with any solid, including solids with holes.
This function is not supported with geodetic data.
For information about support for three-dimensional geometries, see Three-Dimensional Spatial Objects.
Examples
The following example returns the volume of a solid geometry object.
-- Return the volume of a solid geometry. SELECT p.id, SDO_GEOM.SDO_VOLUME(p.geometry, 0.005) FROM polygons3d p WHERE p.id = 12; ID SDO_GEOM.SDO_VOLUME(P.GEOMETRY,0.005) ---------- ------------------------------------- 12 6
Related Topics
None.
Parent topic: SDO_GEOM Package (Geometry)