22.27 SDO_CS.MAKE_3D
Format
SDO_CS.MAKE_3D( geom2d IN SDO_GEOMETRY, height IN NUMBER DEFAULT 0, target_srid IN NUMBER DEFAULT NULL) RETURN SDO_GEOMETRY;
Description
Converts a two-dimensional geometry into a three-dimensional geometry.
Parameters
- geom2d
-
Two-dimensional geometry object.
- height
-
Height value to be used in the third dimension for all vertices in the returned geometry. If this parameter is null or not specified, a height of 0 (zero) is used for all vertices.
- target_srid
-
The SRID of the target coordinate reference system. Must be null or a value in the SRID column of the SDO_COORD_REF_SYS table (described in SDO_COORD_REF_SYS Table).
Usage Notes
Note:
The SDO_CS.MAKE_3D function is supported only if Oracle JVM is enabled on your Oracle Autonomous Database Serverless deployments. To enable Oracle JVM, see Use Oracle Java in Using Oracle Autonomous Database Serverless for more information.For information about using this function to simulate a cross-dimensionality transformation, see Cross-Dimensionality Transformations.
For information about three-dimensional coordinate reference system support, see Three-Dimensional Coordinate Reference System Support.
Examples
The following example converts the cola_a
two-dimensional geometry to a three-dimensional geometry. (This example uses the definitions from the example in Example of Coordinate System Transformation.).
SELECT SDO_CS.MAKE_3D(c.shape, 10, 8307) FROM cola_markets_cs c WHERE c.name = 'cola_a'; SDO_CS.MAKE_3D(C.SHAPE,10,8307)(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELE -------------------------------------------------------------------------------- SDO_GEOMETRY(3003, 8307, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1), SDO_ORDINATE_ARR AY(1, 1, 10, 5, 1, 10, 5, 7, 10, 1, 7, 10, 1, 1, 10))
Parent topic: SDO_CS Package (Coordinate System Transformation)