25.04.2013 Views

View PDF

View PDF

View PDF

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SDO_PC_PKG.TO_GEOMETRY<br />

Format<br />

Description<br />

Parameters<br />

Usage Notes<br />

Examples<br />

SDO_PC_PKG.TO_GEOMETRY(<br />

pts IN BLOB,<br />

num_pts IN NUMBER,<br />

tin_tot_dim IN NUMBER,<br />

srid IN NUMBER DEFAULT NULL,<br />

blk_domain IN SDO_ORGSCL_TYPE DEFAULT NULL<br />

) RETURN SDO_GEOMETRY;<br />

Returns a geometry object representing all or part of a point cloud.<br />

pts<br />

BLOB containing the points.<br />

num_pts<br />

Maximum number of points to be included in the resulting geometry.<br />

tin_tot_dim<br />

Number of spatial dimensions defined for the data.<br />

SDO_PC_PKG.TO_GEOMETRY<br />

srid<br />

Spatial reference (coordinate system) ID associated with the data. If this parameter is<br />

null, no SRID value is associated with the data.<br />

blk_domain<br />

(Not currently used.)<br />

This function returns a single multipoint SDO_GEOMETRY object that represents all<br />

point geometries in the pts parameter. For example, the points could reflect the result<br />

of a clip operation or the contents of an entire block.<br />

Section 1.11.2 describes how to use point clouds to model solids.<br />

The following example returns a multipoint collection geometry object representing a<br />

point cloud. It is taken from the sdo_pc.sql example program, which is under<br />

$ORACLE_HOME/md/demo/examples/PointCloud/plsql/ if you installed the<br />

files from the Oracle Database Examples media.<br />

. . .<br />

-- Return points in blk_id of the point cloud as a multipoint collection.<br />

select sdo_pc_pkg.to_geometry(<br />

a.points, -- point LOB<br />

a.num_points, -- # of points in the LOB<br />

SDO_PC_PKG Package (Point Clouds) 28-11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!