29.14 SDO_PC_PKG.PC2DEM
Format
SDO_PC_PKG.PC2DEM( geor IN OUT SDO_GEORASTER, pc IN SDO_PC, mbr2d IN SDO_GEOMETRY, resolution IN NUMBER, blocksize IN NUMBER);
or
SDO_PC_PKG.PC2DEM( geor IN OUT SDO_GEORASTER, pc IN SDO_PC, mbr2d IN SDO_GEOMETRY, resolutionVert IN NUMBER, resolutionHoriz IN NUMBER, blocksizeVert IN NUMBER); blocksizeHoriz IN NUMBER);
Description
Creates a DEM (Digital Elevation Model) GeoRaster object from an existing (blocked model) point cloud object..
Parameters
- geor
-
GeoRaster object. (The SDO_GEORASTER data type is described in Oracle Spatial GeoRaster Developer's Guide.)
- pc
-
Point cloud object. (The SDO_PC data type is described in Point Cloud-Related Object Types.)
- mbr2d
-
The two-dimensional minimum bounding rectangle (MBR) within which the DEM should be generated.
- resolution
-
Resolution in coordinate reference system units per pixel, such as meters per pixel or degrees per pixel.
- blockSize
-
Block size in pixels.
- resolutionVert
-
If the horizontal and vertical resolutions differ: the vertical resolution in coordinate reference system units per pixel, such as meters per pixel or degrees per pixel.
- resolutionHoriz
-
If the horizontal and vertical resolutions differ: the horizontal resolution in coordinate reference system units per pixel, such as meters per pixel or degrees per pixel.
- blockSizeVert
-
If the horizontal and vertical block sizes differ: the vertical block size.
- blockSizeHoriz
-
If the horizontal and vertical block sizes differ: the horizontal block size.
Usage Notes
This procedure modifies the specified GeoRaster object (geor
parameter) based on information in the input point cloud.
The pc
and geor
objects must have the same coordinate reference system (SRID).
For the geor
parameter, the input SDO_GEORASTER object can be obtained by inserting a GeoRaster object into a table and returning the GeoRaster object into a variable; for example:
INSERT INTO raster_table VALUES (1, sdo_geor.init('raster_data_table')) RETURNING raster_image INTO geor;
Modeling Solids describes how to use point clouds to model solids.
Examples
The following example creates a DEM from a point cloud.
DECLARE pc sdo_pc; geor sdo_georaster; mbr sdo_geometry := SDO_GEOMETRY( 2003, 27700, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 3), SDO_ORDINATE_ARRAY( 668000, 5535000, 672000, 5539000)); BEGIN select pc INTO pc from pcs where id = 2; insert into raster (id, raster) values(2, sdo_geor.init('raster_data', 2)) returning raster into geor; sdo_pc_pkg.pc2dem( geor => geor, pc => pc, mbr2d => mbr, resolution => 1.0, blockSize => 512); sdo_geor.generatePyramid( georaster => geor, pyramidParams => 'rLevel=7, resampling=BILINEAR'); update raster set raster = geor where id = 2; commit; END; /
For additional examples, see the $ORACLE_HOME/md/demo/PointCloud/examples/plsql/pc.sql
example program, which is available if you installed the files from the Oracle Database Examples media (see Oracle Database Examples Installation Guide).
Parent topic: SDO_PC_PKG Package (Point Clouds)