oracle.spatial.georaster.sql
Class SdoGeoRaster

java.lang.Objectoracle.spatial.georaster.sql.SdoGeoRaster

public class SdoGeoRaster

extends java.lang.Object

SdoGeoRaster is a Java class which contains a pair of rasterID and rasterDataTable information. Combined with a connection (a database), SdoGeoRaster can uniquely identify a GeoRaster object in the target database.

SdoGeoRaster can be constructed from a STRUCT object.

public SdoGeoRaster(STRUCT georaster) throws Exception
or from a pair of rasterID and rasterDataTable.
public SdoGeoRaster(String rasterDataTable, NUMBER rasterID)
SdoGeoRaster can also be constructed from a JGeoRaster object:
public SdoGeoRaster(JGeoRaster jeor)

Compared with JGeoRaster object, SdoGeoRaster is a lightweight Java mapping of a GeoRaster object, because it only contains a pair of rasterID and rasterDataTable information without any other overhead; instead, when a JGeoRaster object is constructed, it needs to fetch and parse a GeoRaster metadata XML string, construct internal metadata objects structure, and initialize some necessary attributes for later data and image processing.

SdoGeoRaster is usually used with class SdoGeorPKG to wrap the GeoRaster PL/SQL API on the Java side. For example: