29.18 SDO_PC_PKG.TO_GEOMETRY
Format
SDO_PC_PKG.TO_GEOMETRY( pts IN BLOB, num_pts IN NUMBER, pc_tot_dim IN NUMBER, srid IN NUMBER DEFAULT NULL, blk_domain IN SDO_ORGSCL_TYPE DEFAULT NULL ) RETURN SDO_GEOMETRY;
Description
Returns a geometry object representing all or part of a point cloud.
Parameters
- pts
-
BLOB containing the points.
- num_pts
-
Maximum number of points to be included in the resulting geometry.
- pc_tot_dim
-
Number of spatial dimensions defined for the data.
- srid
-
Spatial reference (coordinate system) ID associated with the data. If this parameter is null, no SRID value is associated with the data.
- blk_domain
-
(Not currently used.)
Usage Notes
This function returns a single multipoint SDO_GEOMETRY object that represents all point geometries in the pts parameter. For example, the points could reflect the result of a clip operation or the contents of an entire block.
Modeling Solids describes how to use point clouds to model solids.
Examples
The following example returns a multipoint collection geometry object representing a
point cloud. It is taken from the
$ORACLE_HOME/md/demo/PointCloud/examples/plsql/pc.sql
example program, which is available if you
installed the files from Oracle AI Database
Examples media (see Oracle AI Database Examples
Installation Guide).
. . .
-- Return points in blk_id of the point cloud as a multipoint collection.
select sdo_pc_pkg.to_geometry(
a.points, -- point LOB
a.num_points, -- # of points in the LOB
3, -- total dimensionality
8307 -- SRID
) from blktab a where blk_id=0;
. . .Parent topic: SDO_PC_PKG Package (Point Clouds)