|
Oracle® Spatial Java API Reference 11g Release 2 (11.2) E11829-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.spatial.georaster.sql.SdoGeoRaster
public class SdoGeoRaster
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:
public void changeFormatCopy(SdoGeoRaster source,String storageParam,SdoGeoRaster target,double[] bgValues) throws Exception
Constructor Summary | |
---|---|
SdoGeoRaster(java.lang.String rasterDataTable, NUMBER rasterID) Constructs an SdoGeoRaster object using the given rasterDataTable and rasterID. |
|
SdoGeoRaster(STRUCT georaster) Constructs an SdoGeoRaster object using the given STRUCT. |
Method Summary | |
---|---|
java.lang.String |
getRasterDataTable() Returns the raster data table where the current GeoRaster object is stored. |
NUMBER |
getRasterID() Returns the raster ID assigned to the current GeoRaster object. |
void |
setRasterDataTable(java.lang.String rasterDataTable) Sets the raster data table of the current GeoRaster object. |
void |
setRasterID(NUMBER rasterID) Sets the raster ID of the current GeoRaster object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SdoGeoRaster(STRUCT georaster) throws java.lang.Exception
SdoGeoRaster
object using the given STRUCT.
georaster
- a STRUCT object, which is used to initiate the SdoGeoRaster objectjava.lang.Exception
public SdoGeoRaster(java.lang.String rasterDataTable, NUMBER rasterID)
SdoGeoRaster
object using the given rasterDataTable and rasterID.
rasterDataTable
- raster data tablerasterID
- raster ID numberMethod Detail |
---|
public java.lang.String getRasterDataTable()
public NUMBER getRasterID()
public void setRasterID(NUMBER rasterID) throws GeoRasterException
rasterID
- the raster ID assigned to the current GeoRaster objectGeoRasterException
public void setRasterDataTable(java.lang.String rasterDataTable) throws GeoRasterException
rasterDataTable
- the raster data table where the current GeoRaster object is storedGeoRasterException
|
Oracle® Spatial Java API Reference 11g Release 2 (11.2) E11829-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |