The smpl_georaster_ldr.jar file includes some sample code in Java.
It provides an example on how to write a loader (inAdaptor) for
the GeoRaster feature of Oracle Spatial to upload external
image/raster files into an Oracle Spatial GeoRaster object.
Run "jar xf smpl_georaster_ldr.jar" to get the source code which
inlcudes three classes:
1. SampleGeoRasterLoader.java
It takes a Sun JAI image as an example and writes the cell data
and metadata into an initialized GeoRaster object in the database.
2. GeoRasterMetadata.java
It organizes all metadata into an XML Document according to the
Oracle GeoRaster metadata XML Schema.
3. JGeoRasterSRS.java
It reads an ESRI World file and translate it into the GeoRaster
Spatial Reference System component which is part of the GeoRaster
metadata XML document.
The sample code shows how to organize GeoRaster XML metadata and
how to write raster cells into GeoRaster objects. It is not a standard
nor optimal. Users should only use it for understanding how to write
a GeoRaster loader.
|