public class GeoRasterImage
extends java.lang.Object
When a GeoRasterImage object is initiated from a JGeoRaster object, r/g/b mappings of the GeoRasterImage object are set automatically based on the metadata of the JGeoRaster object, and then these settings can be changed manually by the following methods:
public void setRed(int red) public void setGreen(int green) public void setBlue(int blue)Once r/g/b mappings are set, all later calls to the following methods will use these mappings to construct Java images from GeoRaster objects:
public RenderedImage getRasterImage(int pyramidLevel) public RenderedImage getRasterImage(int pyramidLevel,JGeometry window) public RenderedImage getRasterImage(int pyramidLevel,long startRow,long startColumn,long endRow,long endColumn) public RenderedImage getRasterImage(int pyramidLevel,String transportationType,int quality) public RenderedImage getRasterImageWithMask(int pyramidLevel,JGeometry window,Vector layerNo,int zeroMapping,int oneMapping) public RenderedImage getRasterImageWithMask(int pyramidLevel,JGeometry window,Vector layerNo,int zeroMapping,int oneMapping,String transportationType,int quality) public RenderedImage getRasterImageWithMask(int pyramidLevel,long startRow,long startColumn,long endRow,long endColumn,Vector layerNo,int zeroMapping,int oneMapping) public RenderedImage getRasterImageWithMask(int pyramidLevel,long startRow,long startColumn,long endRow,long endColumn,Vector layerNo,int zeroMapping,int oneMapping,String transportationType,nt quality)
A GeoRasterImage object is constructed from a JGeoRaster object as follows:
public GeoRasterImage(JGeoRaster georaster) throws GeoRasterExceptionor you can get a GeoRasterImage instance through the method defined in the JGeoRaster object:
public GeoRasterImage getGeoRasterImageObject()Note: the preceding method is a singleton operation, which means that for each JGeoRaster object, the GeoRasterImage instance is just initiated once. After that, the JGeoRaster will keep returning the same GeoRasterImage instance created by the first invocation, so that the JGeoRaster object can keep red/green/blue mapping across calls.
The following is an example of how to use this class to visualize a GeoRaster object:
... //reading a GeoRaster object from database based on a query ResultSet rs = statement.executeQuery("SELECT a.georaster FROM georaster_table a where a.georaster.rasterdatatable='RDT' and a.georaster.rasterid=1"); STRUCT geor = (oracle.sql.STRUCT) rs.getObject(1); //construct a JGeoRaster object JGeoRaster geoRaster = new JGeoRaster(geor); //get GeoRasterImage instance GeoRasterImage geoRasterImage=geoRaster.getGeoRasterImageObject(); //fetch a subset of GeoRaster object as a Java image RenderedImage image=geoRasterImage.getRasterImage(0,0,0,100,100); ...
Modifier and Type | Class and Description |
---|---|
class |
GeoRasterImage.NodataMapping |
Constructor and Description |
---|
GeoRasterImage(JGeoRaster georaster)
Constructs a
GeoRasterImage object with the given JGeoRaster object. |
GeoRasterImage(JGeoRasterVM geoRasterVM, MosaicParameters mosaicParam)
Constructs a
GeoRasterImage object with the given JGeoRasterVM object |
Modifier and Type | Method and Description |
---|---|
boolean |
addNodataMapping(double nodata, java.lang.Double newValue, boolean isTransparent)
This function will add nodata(value) mapping to current image, so that all pixel values, which equal to the nodata value, will be changed to newValue and it's alpha channel value is changed too based on transparent setting by parameter isTransparent.
|
boolean |
addNodataMapping(double nodataStart, double nodataEnd, java.lang.Double newValue, boolean isTransparent)
This function will add nodata(range) mapping to current image, so that all pixel values, which fall into the nodata range, will be changed to newValue and it's alpha channel value is changed too based on transparent setting by parameter isTransparent.
|
int |
getAlpha()
Returns the band number mapped to the alpha channel.
|
int |
getBlue()
Returns the band number mapped to blue.
|
int |
getGreen()
Returns the band number mapped to green.
|
java.awt.image.RenderedImage |
getMaskImage(int pyramidLevel, JGeometry window, java.util.Vector layerNo, int zeroMapping, int oneMapping, long[] outWindow)
Returns the specified portion of the GeoRaster mask in the specified pyramidLevel and layer as a Java Image.
|
java.awt.image.RenderedImage |
getMaskImage(int pyramidLevel, JGeometry window, java.util.Vector layerNo, int zeroMapping, int oneMapping, java.lang.String transportationType, long[] outWindow)
Returns the specified portion of the GeoRaster mask in the specified pyramidLevel and layer as a Java Image.
|
java.awt.image.RenderedImage |
getMaskImage(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, java.util.Vector layerNo, int zeroMapping, int oneMapping, long[] outWindow)
Returns the specified portion of the GeoRaster mask in the specified pyramidLevel and layer as a Java Image.
|
java.awt.image.RenderedImage |
getMaskImage(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, java.util.Vector layerNo, int zeroMapping, int oneMapping, java.lang.String transportationType, long[] outWindow)
Returns the specified portion of the GeoRaster mask in the specified pyramidLevel and layer as a Java Image.
|
java.util.Vector |
getNodataMapping()
This function will return all nodata mappings in a Vector of NodataMapping objects
|
JGeometry |
getOutArea()
Get a SDO_GEOMETRY object containing the MBR (minimum bounding rectangle) in the model coordinate system of the resulting object of previous getReprojectedRasterImage call.
|
java.awt.image.RenderedImage |
getRasterImage(int pyramidLevel)
Returns the entire GeoRaster in the specified pyramidLevel as a Java Image.
|
java.awt.image.RenderedImage |
getRasterImage(int pyramidLevel, double[] bgValues)
Returns the entire GeoRaster in the specified pyramidLevel as a Java Image.
|
java.awt.image.RenderedImage |
getRasterImage(int pyramidLevel, JGeometry window, long[] outWindow)
Returns the specified portion of the GeoRaster in the specified pyramidLevel as a Java Image.
|
java.awt.image.RenderedImage |
getRasterImage(int pyramidLevel, JGeometry window, long[] outWindow, double[] bgValues)
Returns the specified portion of the GeoRaster in the specified pyramidLevel as a Java Image.
|
java.awt.image.RenderedImage |
getRasterImage(int pyramidLevel, JGeometry window, java.lang.String transportationType, int quality, long[] outWindow)
Returns the specified portion of the GeoRaster in the specified pyramidLevel as a Java Image.
|
java.awt.image.RenderedImage |
getRasterImage(int pyramidLevel, JGeometry window, java.lang.String transportationType, int quality, long[] outWindow, double[] bgValues)
Returns the specified portion of the GeoRaster in the specified pyramidLevel as a Java Image.
|
java.awt.image.RenderedImage |
getRasterImage(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, long[] outWindow)
Returns the specified portion of the GeoRaster in the specified pyramidLevel as a Java Image.
|
java.awt.image.RenderedImage |
getRasterImage(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, long[] outWindow, double[] bgValues)
Returns the specified portion of the GeoRaster in the specified pyramidLevel as a Java Image.
|
java.awt.image.RenderedImage |
getRasterImage(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, java.lang.String transportationType, int quality, long[] outWindow)
Returns the specified portion of the GeoRaster in the specified pyramidLevel as a Java Image.
|
java.awt.image.RenderedImage |
getRasterImage(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, java.lang.String transportationType, int quality, long[] outWindow, double[] bgValues)
Returns the specified portion of the GeoRaster in the specified pyramidLevel as a Java Image.
|
java.awt.image.RenderedImage |
getRasterImage(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, java.lang.String bandString, long[] outWindow)
Returns the specified portion of the GeoRaster in the specified pyramidLevel as a Java Image.
|
java.awt.image.RenderedImage |
getRasterImage(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, java.lang.String bandString, long[] outWindow, double[] bgValues)
Returns the specified portion of the GeoRaster in the specified pyramidLevel as a Java Image.
|
java.awt.image.RenderedImage |
getRasterImage(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, java.lang.String bandString, java.lang.String transportationType, int quality, long[] outWindow)
Returns the specified portion of the GeoRaster in the specified pyramidLevel as a Java Image.
|
java.awt.image.RenderedImage |
getRasterImage(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, java.lang.String bandString, java.lang.String transportationType, int quality, long[] outWindow, double[] bgValues)
Returns the specified portion of the GeoRaster in the specified pyramidLevel as a Java Image.
|
java.awt.image.RenderedImage |
getRasterImage(int pyramidLevel, java.lang.String transportationType, int quality)
Returns the entire GeoRaster in the specified pyramidLevel as a Java Image.
|
java.awt.image.RenderedImage |
getRasterImage(int pyramidLevel, java.lang.String transportationType, int quality, double[] bgValues)
Returns the entire GeoRaster in the specified pyramidLevel as a Java Image.
|
java.awt.image.RenderedImage |
getRasterImageWithMask(int pyramidLevel, JGeometry window, java.util.Vector layerNo, int zeroMapping, int oneMapping, long[] outWindow)
Gets the specified portion of the GeoRaster and mask as a Java Image.
|
java.awt.image.RenderedImage |
getRasterImageWithMask(int pyramidLevel, JGeometry window, java.util.Vector layerNo, int zeroMapping, int oneMapping, java.lang.String transportationType, int quality, long[] outWindow)
Gets the specified portion of the GeoRaster and mask as a Java Image.
|
java.awt.image.RenderedImage |
getRasterImageWithMask(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, java.util.Vector layerNo, int zeroMapping, int oneMapping, long[] outWindow)
Gets the specified portion of the GeoRaster and mask as a Java Image.
|
java.awt.image.RenderedImage |
getRasterImageWithMask(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, java.util.Vector layerNo, int zeroMapping, int oneMapping, java.lang.String transportationType, int quality, long[] outWindow)
Gets the specified portion of the GeoRaster and mask as a Java Image.
|
int |
getRed()
Returns the band number mapped to red.
|
java.awt.image.RenderedImage |
getReprojectedRasterImage(int pyramidLevel, JGeometry window, java.lang.String resampleParam, int outSRID, long[] outWindow, double[] bgValues)
Reprojects the specified portion of the GeoRaster in the specified pyramidLevel, and returns it as a Java Image.
|
java.awt.image.RenderedImage |
getReprojectedRasterImage(int pyramidLevel, JGeometry window, java.lang.String resampleParam, java.lang.String transportationType, int quality, int outSRID, long[] outWindow, double[] bgValues)
Returns the specified portion of the GeoRaster in the specified pyramidLevel as a Java Image.
|
java.awt.image.RenderedImage |
getReprojectedRasterImage(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, java.lang.String resampleParam, int outSRID, long[] outWindow, double[] bgValues)
Reprojects the specified portion of the GeoRaster in the specified pyramidLevel, and returns it as a Java Image.
|
java.awt.image.RenderedImage |
getReprojectedRasterImage(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, java.lang.String resampleParam, java.lang.String bandString, java.lang.String transportationType, int quality, int outSRID, long[] outWindow, double[] bgValues)
Reprojects the specified portion of the GeoRaster in the specified pyramidLevel, and returns it as a Java Image.
|
int |
getTotalBandNumber()
Gets the number of bands in the current geoRasterImage based on the current setting for red/green/blue if (red=blue=green) then returns 1; otherwise, return 3.
|
boolean |
hasColormap()
Returns whether a colormap is associated with the current RGB band.
|
boolean |
hasGrayscale()
Returns whether a gray scale mapping is associated with the current RGB band.
|
boolean |
isVirtualMosaic() |
void |
removeNodataMapping(double nodata)
This function will remove nodata(value) mapping from existing nodata setting, which should exactly match parameter nodata.
|
boolean |
removeNodataMapping(double nodataStart, double nodataEnd)
This function will remove nodata(range) mapping from existing nodata setting, which exactly matchs parameter nodataStart and nodataEnd.
|
void |
setAlpha(int alpha)
Sets the band number mapped to the alpha channel.
|
void |
setBlue(int blue)
Sets the band number mapped to blue.
|
void |
setGreen(int green)
Sets the band number mapped to green.
|
void |
setRed(int red)
Sets the band number mapped to red.
|
public GeoRasterImage(JGeoRaster georaster) throws GeoRasterException
GeoRasterImage
object with the given JGeoRaster object.georaster
- a GeoRaster objectGeoRasterException
public GeoRasterImage(JGeoRasterVM geoRasterVM, MosaicParameters mosaicParam) throws GeoRasterException
GeoRasterImage
object with the given JGeoRasterVM objectgeoRasterVM
- a JGeoRasterVM objectGeoRasterException
public boolean addNodataMapping(double nodataStart, double nodataEnd, java.lang.Double newValue, boolean isTransparent)
nodataStart
- the lower bound of nodata range, which is inclusivenodataEnd
- the upper bound of nodata range, which is exclusivenewValue
- new value for any pixel value in this no data range, if newValue==null then it means original data value is kept.isTransparent
- set nodata pixels to transparent or opaquepublic boolean addNodataMapping(double nodata, java.lang.Double newValue, boolean isTransparent)
nodata
- nodata valuenewValue
- new value for this no data, if newValue==null then it means original data value is keptisTransparent
- set nodata pixels to transparent or opaquepublic boolean removeNodataMapping(double nodataStart, double nodataEnd)
nodataStart
- the lower bound of nodata range, which is inclusivenodataEnd
- the upper bound of nodata range, which is exclusivepublic void removeNodataMapping(double nodata)
nodata
- nodata valuepublic java.util.Vector getNodataMapping()
public int getAlpha()
public void setAlpha(int alpha)
alpha
- band numberpublic int getRed()
public void setRed(int red)
red
- band numberpublic int getGreen()
public void setGreen(int green)
green
- band numberpublic int getBlue()
public void setBlue(int blue)
blue
- band numberpublic boolean hasColormap()
public boolean hasGrayscale()
public java.awt.image.RenderedImage getRasterImage(int pyramidLevel) throws java.lang.Exception
pyramidLevel
- pyramid leveljava.lang.Exception
public java.awt.image.RenderedImage getRasterImage(int pyramidLevel, double[] bgValues) throws java.lang.Exception
pyramidLevel
- pyramid levelbgValues
- background values for filling sparse data. The number of elements in the array must be either one (same filing value used for all bands) or the band dimension size (a different filling value for each band, respectively). This parameter is useful when the source has empty raster blocks and the output window intersects any empty raster blocks. If this parameter is null, any cells in the output window that are derived from an empty raster block are filled with the value 0 in the output BLOB. Note that this parameter only works in version 11 or later.java.lang.Exception
public java.awt.image.RenderedImage getRasterImage(int pyramidLevel, java.lang.String transportationType, int quality) throws java.lang.Exception
pyramidLevel
- pyramid leveltransportationType
- specify whether or not to fetch data in compression from the server side; must be one of the following values:
RasterInfo.COMPRESSION_NONE RasterInfo.COMPRESSION_JPEG_F RasterInfo.COMPRESSION_DEFLATE
quality
- JPEG compression quality, which is the degree of lossiness caused by the compression. Must be an integer from 0 (lowest quality) through 100 (highest quality).java.lang.Exception
public java.awt.image.RenderedImage getRasterImage(int pyramidLevel, java.lang.String transportationType, int quality, double[] bgValues) throws java.lang.Exception
pyramidLevel
- pyramid leveltransportationType
- specify whether or not to fetch data in compression from the server side; must be one of the following values:
RasterInfo.COMPRESSION_NONE RasterInfo.COMPRESSION_JPEG_F RasterInfo.COMPRESSION_DEFLATE
quality
- JPEG compression quality, which is the degree of lossiness caused by the compression. Must be an integer from 0 (lowest quality) through 100 (highest quality).bgValues
- background values for filling sparse data. The number of elements in the array must be either one (same filing value used for all bands) or the band dimension size (a different filling value for each band, respectively). This parameter is useful when the source has empty raster blocks and the output window intersects any empty raster blocks. If this parameter is null, any cells in the output window that are derived from an empty raster block are filled with the value 0 in the output BLOB. Note that this parameter only works in version 11 or later.java.lang.Exception
public java.awt.image.RenderedImage getRasterImage(int pyramidLevel, JGeometry window, long[] outWindow) throws GeoRasterException, java.io.IOException
pyramidLevel
- pyramid levelwindow
- a JGeometry object which represents the area of interestoutWindow
- a long array returning the coordinates of the upper-left and lower-right corners of the output window in the cell space. Note that the caller must pass in a long array, and the length of the array should be 4. The method getModelCoordinate(...) defined in the class SpatialReferenceInfo can be used to transform this outWindow into model space.GeoRasterException
java.io.IOException
public java.awt.image.RenderedImage getRasterImage(int pyramidLevel, JGeometry window, long[] outWindow, double[] bgValues) throws GeoRasterException, java.io.IOException
pyramidLevel
- pyramid levelwindow
- a JGeometry object which represents the area of interestoutWindow
- a long array returning the coordinates of the upper-left and lower-right corners of the output window in the cell space. Note that the caller must pass in a long array, and the length of the array should be 4. The method getModelCoordinate(...) defined in the class SpatialReferenceInfo can be used to transform this outWindow into model space.bgValues
- background values for filling sparse data. The number of elements in the array must be either one (same filing value used for all bands) or the band dimension size (a different filling value for each band, respectively). This parameter is useful when the source has empty raster blocks and the output window intersects any empty raster blocks. If this parameter is null, any cells in the output window that are derived from an empty raster block are filled with the value 0 in the output BLOB. Note that this parameter only works in version 11 or later.GeoRasterException
java.io.IOException
public java.awt.image.RenderedImage getRasterImage(int pyramidLevel, JGeometry window, java.lang.String transportationType, int quality, long[] outWindow) throws GeoRasterException, java.io.IOException
pyramidLevel
- pyramid levelwindow
- a JGeometry object which represents the area of interest.transportationType
- specify whether or not to fetch data in compression from the server side; must be one of the following values:
RasterInfo.COMPRESSION_NONE RasterInfo.COMPRESSION_JPEG_F RasterInfo.COMPRESSION_DEFLATE
quality
- JPEG compression quality, which is the degree of lossiness caused by the compression. Must be an integer from 0 (lowest quality) through 100 (highest quality).outWindow
- a long array returning the coordinates of the upper-left and lower-right corners of the output window in the cell space. Note that the caller must pass in a long array, and the length of the array should be 4. The method getModelCoordinate(...) defined in the class SpatialReferenceInfo can be used to transform this outWindow into model space.GeoRasterException
java.io.IOException
public java.awt.image.RenderedImage getRasterImage(int pyramidLevel, JGeometry window, java.lang.String transportationType, int quality, long[] outWindow, double[] bgValues) throws GeoRasterException, java.io.IOException
pyramidLevel
- pyramid levelwindow
- a JGeometry object which represents the area of interest.transportationType
- specify whether or not to fetch data in compression from the server side; must be one of the following values:
RasterInfo.COMPRESSION_NONE RasterInfo.COMPRESSION_JPEG_F RasterInfo.COMPRESSION_DEFLATE
quality
- JPEG compression quality, which is the degree of lossiness caused by the compression. Must be an integer from 0 (lowest quality) through 100 (highest quality).outWindow
- a long array returning the coordinates of the upper-left and lower-right corners of the output window in the cell space. Note that the caller must pass in a long array, and the length of the array should be 4. The method getModelCoordinate(...) defined in the class SpatialReferenceInfo can be used to transform this outWindow into model space.bgValues
- background values for filling sparse data. The number of elements in the array must be either one (same filing value used for all bands) or the band dimension size (a different filling value for each band, respectively). This parameter is useful when the source has empty raster blocks and the output window intersects any empty raster blocks. If this parameter is null, any cells in the output window that are derived from an empty raster block are filled with the value 0 in the output BLOB. Note that this parameter only works in version 11 or later.GeoRasterException
java.io.IOException
public java.awt.image.RenderedImage getRasterImage(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, long[] outWindow) throws GeoRasterException, java.io.IOException
This method is usually used by applications to visualize the Georaster object.
pyramidLevel
- pyramid levelstartRow
- start row number, not including ULTCoordinate.startColumn
- start column number, not including ULTCoordinate.endRow
- end row number, not including ULTCoordinate.endColumn
- end column number, not including ULTCoordinate.outWindow
- a long array returning the coordinates of the upper-left and lower-right corners of the output window in the cell space. Note that the caller must pass in a long array, and the length of the array should be 4. The method getModelCoordinate(...) defined in the class SpatialReferenceInfo can be used to transform this outWindow into model space.GeoRasterException
java.io.IOException
public java.awt.image.RenderedImage getRasterImage(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, long[] outWindow, double[] bgValues) throws GeoRasterException, java.io.IOException
This method is usually used by applications to visualize the Georaster object.
pyramidLevel
- pyramid levelstartRow
- start row number, not including ULTCoordinate.startColumn
- start column number, not including ULTCoordinate.endRow
- end row number, not including ULTCoordinate.endColumn
- end column number, not including ULTCoordinate.outWindow
- a long array returning the coordinates of the upper-left and lower-right corners of the output window in the cell space. Note that the caller must pass in a long array, and the length of the array should be 4. The method getModelCoordinate(...) defined in the class SpatialReferenceInfo can be used to transform this outWindow into model space.bgValues
- background values for filling sparse data. The number of elements in the array must be either one (same filing value used for all bands) or the band dimension size (a different filling value for each band, respectively). This parameter is useful when the source has empty raster blocks and the output window intersects any empty raster blocks. If this parameter is null, any cells in the output window that are derived from an empty raster block are filled with the value 0 in the output BLOB. Note that this parameter only works in version 11 or later.GeoRasterException
java.io.IOException
public java.awt.image.RenderedImage getRasterImage(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, java.lang.String transportationType, int quality, long[] outWindow) throws GeoRasterException, java.io.IOException
This method is usually used by applications to visualize the Georaster object.
pyramidLevel
- pyramid levelstartRow
- start row number, not including ULTCoordinate.startColumn
- start column number, not including ULTCoordinate.endRow
- end row number, not including ULTCoordinate.endColumn
- end column number, not including ULTCoordinate.transportationType
- specify whether or not to fetch data in compression from the server side; must be one of the following values:
RasterInfo.COMPRESSION_NONE RasterInfo.COMPRESSION_JPEG_F RasterInfo.COMPRESSION_DEFLATE
quality
- JPEG compression quality, which is the degree of lossiness caused by the compression. Must be an integer from 0 (lowest quality) through 100 (highest quality).outWindow
- a long array returning the coordinates of the upper-left and lower-right corners of the output window in the cell space. Note that the caller must pass in a long array, and the length of the array should be 4. The method getModelCoordinate(...) defined in the class SpatialReferenceInfo can be used to transform this outWindow into model space.GeoRasterException
java.io.IOException
public java.awt.image.RenderedImage getRasterImage(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, java.lang.String transportationType, int quality, long[] outWindow, double[] bgValues) throws GeoRasterException, java.io.IOException
This method is usually used by applications to visualize the Georaster object.
pyramidLevel
- pyramid levelstartRow
- start row number, not including ULTCoordinate.startColumn
- start column number, not including ULTCoordinate.endRow
- end row number, not including ULTCoordinate.endColumn
- end column number, not including ULTCoordinate.transportationType
- specify whether or not to fetch data in compression from the server side; must be one of the following values:
RasterInfo.COMPRESSION_NONE RasterInfo.COMPRESSION_JPEG_F RasterInfo.COMPRESSION_DEFLATE
quality
- JPEG compression quality, which is the degree of lossiness caused by the compression. Must be an integer from 0 (lowest quality) through 100 (highest quality).outWindow
- a long array returning the coordinates of the upper-left and lower-right corners of the output window in the cell space. Note that the caller must pass in a long array, and the length of the array should be 4. The method getModelCoordinate(...) defined in the class SpatialReferenceInfo can be used to transform this outWindow into model space.bgValues
- background values for filling sparse data. The number of elements in the array must be either one (same filing value used for all bands) or the band dimension size (a different filling value for each band, respectively). This parameter is useful when the source has empty raster blocks and the output window intersects any empty raster blocks. If this parameter is null, any cells in the output window that are derived from an empty raster block are filled with the value 0 in the output BLOB. Note that this parameter only works in version 11 or later.GeoRasterException
java.io.IOException
public java.awt.image.RenderedImage getRasterImage(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, java.lang.String bandString, long[] outWindow) throws GeoRasterException, java.io.IOException
This method can be used by applications to export a GeoRaster object into an image file through Java image I/O.
pyramidLevel
- pyramid levelstartRow
- start row number, not including ULTCoordinate.startColumn
- start column number, not including ULTCoordinate.endRow
- end row number, not including ULTCoordinate.endColumn
- end column number, not including ULTCoordinate.bandString
- a string to specify which band will be included in the image.outWindow
- a long array returning the coordinates of the upper-left and lower-right corners of the output window in the cell space. Note that the caller must pass in a long array, and the length of the array should be 4. The method getModelCoordinate(...) defined in the class SpatialReferenceInfo can be used to transform this outWindow into model space.GeoRasterException
java.io.IOException
public java.awt.image.RenderedImage getRasterImage(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, java.lang.String bandString, long[] outWindow, double[] bgValues) throws GeoRasterException, java.io.IOException
This method can be used by applications to export a GeoRaster object into an image file through Java image I/O.
pyramidLevel
- pyramid levelstartRow
- start row number, not including ULTCoordinate.startColumn
- start column number, not including ULTCoordinate.endRow
- end row number, not including ULTCoordinate.endColumn
- end column number, not including ULTCoordinate.bandString
- a string to specify which band will be included in the image.outWindow
- a long array returning the coordinates of the upper-left and lower-right corners of the output window in the cell space. Note that the caller must pass in a long array, and the length of the array should be 4. The method getModelCoordinate(...) defined in the class SpatialReferenceInfo can be used to transform this outWindow into model space.bgValues
- background values for filling sparse data. The number of elements in the array must be either one (same filing value used for all bands) or the band dimension size (a different filling value for each band, respectively). This parameter is useful when the source has empty raster blocks and the output window intersects any empty raster blocks. If this parameter is null, any cells in the output window that are derived from an empty raster block are filled with the value 0 in the output BLOB. Note that this parameter only works in version 11 or later.GeoRasterException
java.io.IOException
public java.awt.image.RenderedImage getRasterImage(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, java.lang.String bandString, java.lang.String transportationType, int quality, long[] outWindow) throws GeoRasterException, java.io.IOException
This method can be used by applications to export a GeoRaster object into an image file through Java image I/O.
pyramidLevel
- pyramid levelstartRow
- start row number, not including ULTCoordinate.startColumn
- start column number, not including ULTCoordinate.endRow
- end row number, not including ULTCoordinate.endColumn
- end column number, not including ULTCoordinate.bandString
- a string to specify which band will be included in the image.transportationType
- specify whether or not to fetch data in compression from the server side; must be one of the following values:
RasterInfo.COMPRESSION_NONE RasterInfo.COMPRESSION_JPEG_F RasterInfo.COMPRESSION_DEFLATE
quality
- JPEG compression quality, which is the degree of lossiness caused by the compression. Must be an integer from 0 (lowest quality) through 100 (highest quality).outWindow
- a long array returning the coordinates of the upper-left and lower-right corners of the output window in the cell space. Note that the caller must pass in a long array, and the length of the array should be 4. The method getModelCoordinate(...) defined in the class SpatialReferenceInfo can be used to transform this outWindow into model space.GeoRasterException
java.io.IOException
public java.awt.image.RenderedImage getRasterImage(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, java.lang.String bandString, java.lang.String transportationType, int quality, long[] outWindow, double[] bgValues) throws GeoRasterException, java.io.IOException
This method can be used by applications to export a GeoRaster object into an image file through Java image I/O.
pyramidLevel
- pyramid levelstartRow
- start row number, not including ULTCoordinate.startColumn
- start column number, not including ULTCoordinate.endRow
- end row number, not including ULTCoordinate.endColumn
- end column number, not including ULTCoordinate.bandString
- a string to specify which band will be included in the image.transportationType
- specify whether or not to fetch data in compression from the server side; must be one of the following values:
RasterInfo.COMPRESSION_NONE RasterInfo.COMPRESSION_JPEG_F RasterInfo.COMPRESSION_DEFLATE
quality
- JPEG compression quality, which is the degree of lossiness caused by the compression. Must be an integer from 0 (lowest quality) through 100 (highest quality).outWindow
- a long array returning the coordinates of the upper-left and lower-right corners of the output window in the cell space. Note that the caller must pass in a long array, and the length of the array should be 4. The method getModelCoordinate(...) defined in the class SpatialReferenceInfo can be used to transform this outWindow into model space.bgValues
- background values for filling sparse data. The number of elements in the array must be either one (same filing value used for all bands) or the band dimension size (a different filling value for each band, respectively). This parameter is useful when the source has empty raster blocks and the output window intersects any empty raster blocks. If this parameter is null, any cells in the output window that are derived from an empty raster block are filled with the value 0 in the output BLOB. Note that this parameter only works in version 11 or later.GeoRasterException
java.io.IOException
public JGeometry getOutArea()
public java.awt.image.RenderedImage getReprojectedRasterImage(int pyramidLevel, JGeometry window, java.lang.String resampleParam, int outSRID, long[] outWindow, double[] bgValues) throws GeoRasterException, java.io.IOException
pyramidLevel
- pyramid levelwindow
- a JGeometry object which represents the area of interestresampleParam
- a string containing the resampling parameters.outSRID
- target srid numberoutWindow
- a long array returning the coordinates of the upper-left and lower-right corners of the output window in the cell space. Note that the caller must pass in a long array, and the length of the array should be 4. The method getModelCoordinate(...) defined in the class SpatialReferenceInfo can be used to transform this outWindow into model space.bgValues
- background values for filling sparse data. The number of elements in the array must be either one (same filing value used for all bands) or the band dimension size (a different filling value for each band, respectively). This parameter is useful when the source has empty raster blocks and the output window intersects any empty raster blocks. If this parameter is null, any cells in the output window that are derived from an empty raster block are filled with the value 0 in the output BLOB. Note that this parameter only works in version 11 or later.GeoRasterException
java.io.IOException
public java.awt.image.RenderedImage getReprojectedRasterImage(int pyramidLevel, JGeometry window, java.lang.String resampleParam, java.lang.String transportationType, int quality, int outSRID, long[] outWindow, double[] bgValues) throws GeoRasterException, java.io.IOException
pyramidLevel
- pyramid levelwindow
- a JGeometry object which represents the area of interest.transportationType
- specify whether or not to fetch data in compression from the server side; must be one of the following values:
RasterInfo.COMPRESSION_NONE RasterInfo.COMPRESSION_JPEG_F RasterInfo.COMPRESSION_DEFLATE
quality
- JPEG compression quality, which is the degree of lossiness caused by the compression. Must be an integer from 0 (lowest quality) through 100 (highest quality).resampleParam
- a string containing the resampling parameters.outSRID
- target srid numberoutWindow
- a long array returning the coordinates of the upper-left and lower-right corners of the output window in the cell space. Note that the caller must pass in a long array, and the length of the array should be 4. The method getModelCoordinate(...) defined in the class SpatialReferenceInfo can be used to transform this outWindow into model space.bgValues
- background values for filling sparse data. The number of elements in the array must be either one (same filing value used for all bands) or the band dimension size (a different filling value for each band, respectively). This parameter is useful when the source has empty raster blocks and the output window intersects any empty raster blocks. If this parameter is null, any cells in the output window that are derived from an empty raster block are filled with the value 0 in the output BLOB. Note that this parameter only works in version 11 or later.GeoRasterException
java.io.IOException
public java.awt.image.RenderedImage getReprojectedRasterImage(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, java.lang.String resampleParam, int outSRID, long[] outWindow, double[] bgValues) throws GeoRasterException, java.io.IOException
This method is usually used by applications to visualize the Georaster object.
pyramidLevel
- pyramid levelstartRow
- start row number, not including ULTCoordinate.startColumn
- start column number, not including ULTCoordinate.endRow
- end row number, not including ULTCoordinate.endColumn
- end column number, not including ULTCoordinate.resampleParam
- a string containing the resampling parameters.outSRID
- target srid numberoutWindow
- a long array returning the coordinates of the upper-left and lower-right corners of the output window in the cell space. Note that the caller must pass in a long array, and the length of the array should be 4. The method getModelCoordinate(...) defined in the class SpatialReferenceInfo can be used to transform this outWindow into model space.bgValues
- background values for filling sparse data. The number of elements in the array must be either one (same filing value used for all bands) or the band dimension size (a different filling value for each band, respectively). This parameter is useful when the source has empty raster blocks and the output window intersects any empty raster blocks. If this parameter is null, any cells in the output window that are derived from an empty raster block are filled with the value 0 in the output BLOB. Note that this parameter only works in version 11 or later.GeoRasterException
java.io.IOException
public java.awt.image.RenderedImage getReprojectedRasterImage(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, java.lang.String resampleParam, java.lang.String bandString, java.lang.String transportationType, int quality, int outSRID, long[] outWindow, double[] bgValues) throws GeoRasterException, java.io.IOException
This method can be used by applications to export a GeoRaster object into an image file through Java image I/O.
pyramidLevel
- pyramid levelstartRow
- start row number, not including ULTCoordinate.startColumn
- start column number, not including ULTCoordinate.endRow
- end row number, not including ULTCoordinate.endColumn
- end column number, not including ULTCoordinate.resampleParam
- a string containing the resampling parameters.bandString
- a string to specify which band will be included in the image.transportationType
- specify whether or not to fetch data in compression from the server side; must be one of the following values:
RasterInfo.COMPRESSION_NONE RasterInfo.COMPRESSION_JPEG_F RasterInfo.COMPRESSION_DEFLATE
quality
- JPEG compression quality, which is the degree of lossiness caused by the compression. Must be an integer from 0 (lowest quality) through 100 (highest quality).outSRID
- target srid numberoutWindow
- an SDO_NUMBER_ARRAY object identifying the coordinates of the upper-left and lower-right corners of the output window in the cell space.bgValues
- background values for filling sparse data. The number of elements in the array must be either one (same filing value used for all bands) or the band dimension size (a different filling value for each band, respectively). This parameter is useful when the source has empty raster blocks and the output window intersects any empty raster blocks. If this parameter is null, any cells in the output window that are derived from an empty raster block are filled with the value 0 in the output BLOB. Note that this parameter only works in version 11 or later.GeoRasterException
java.io.IOException
public java.awt.image.RenderedImage getMaskImage(int pyramidLevel, JGeometry window, java.util.Vector layerNo, int zeroMapping, int oneMapping, long[] outWindow) throws java.lang.Exception
pyramidLevel
- pyramid levelwindow
- a JGeometry object which represents the area of interestlayerNo
- layer number; note: 0 for object layerzeroMapping
- the value to which the bitmap mask value 0 is mappedoneMapping
- the value to which the bitmap mask value 1 is mappedoutWindow
- a long array returning the coordinates of the upper-left and lower-right corners of the output window in the cell space. Note that the caller must pass in a long array, and the length of the array should be 4. The method getModelCoordinate(...) defined in the class SpatialReferenceInfo can be used to transform this outWindow into model space.java.lang.Exception
public java.awt.image.RenderedImage getMaskImage(int pyramidLevel, JGeometry window, java.util.Vector layerNo, int zeroMapping, int oneMapping, java.lang.String transportationType, long[] outWindow) throws java.lang.Exception
pyramidLevel
- pyramid levelwindow
- a JGeometry object which represents the area of interestlayerNo
- layer number; note: 0 for object layerzeroMapping
- the value to which the bitmap mask value 0 is mappedoneMapping
- the value to which the bitmap mask value 1 is mappedtransportationType
- specify whether or not to fetch data in compression from the server side; must be one of the following values:
RasterInfo.COMPRESSION_NONE RasterInfo.COMPRESSION_DEFLATE
outWindow
- a long array returning the coordinates of the upper-left and lower-right corners of the output window in the cell space. Note that the caller must pass in a long array, and the length of the array should be 4. The method getModelCoordinate(...) defined in the class SpatialReferenceInfo can be used to transform this outWindow into model space.java.lang.Exception
public java.awt.image.RenderedImage getMaskImage(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, java.util.Vector layerNo, int zeroMapping, int oneMapping, long[] outWindow) throws java.lang.Exception
pyramidLevel
- pyramid levelstartRow
- start row number, not including ULTCoordinate.startColumn
- start column number, not including ULTCoordinate.endRow
- end row number, not including ULTCoordinate.endColumn
- end column number, not including ULTCoordinate.layerNo
- layer number; note: 0 for object layerzeroMapping
- the value to which the bitmap mask value 0 is mappedoneMapping
- the value to which the bitmap mask value 1 is mappedoutWindow
- a long array returning the coordinates of the upper-left and lower-right corners of the output window in the cell space. Note that the caller must pass in a long array, and the length of the array should be 4. The method getModelCoordinate(...) defined in the class SpatialReferenceInfo can be used to transform this outWindow into model space.java.lang.Exception
public java.awt.image.RenderedImage getMaskImage(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, java.util.Vector layerNo, int zeroMapping, int oneMapping, java.lang.String transportationType, long[] outWindow) throws java.lang.Exception
pyramidLevel
- pyramid levelstartRow
- start row number, not including ULTCoordinate.startColumn
- start column number, not including ULTCoordinate.endRow
- end row number, not including ULTCoordinate.endColumn
- end column number, not including ULTCoordinate.layerNo
- layer number; note: 0 for object layerzeroMapping
- the value to which the bitmap mask value 0 is mappedoneMapping
- the value to which the bitmap mask value 1 is mappedtransportationType
- specify whether or not to fetch data in compression from the server side; must be one of the following values:
RasterInfo.COMPRESSION_NONE RasterInfo.COMPRESSION_DEFLATE
outWindow
- a long array returning the coordinates of the upper-left and lower-right corners of the output window in the cell space. Note that the caller must pass in a long array, and the length of the array should be 4. The method getModelCoordinate(...) defined in the class SpatialReferenceInfo can be used to transform this outWindow into model space.java.lang.Exception
public java.awt.image.RenderedImage getRasterImageWithMask(int pyramidLevel, JGeometry window, java.util.Vector layerNo, int zeroMapping, int oneMapping, long[] outWindow)
pyramidLevel
- pyramid levelwindow
- a JGeometry object which represents the area of interest.layerNo
- layer number; note: 0 for object layerzeroMapping
- the value to which the bitmap mask value 0 is mappedoneMapping
- the value to which the bitmap mask value 1 is mappedoutWindow
- a long array returning the coordinates of the upper-left and lower-right corners of the output window in the cell space. Note that the caller must pass in a long array, and the length of the array should be 4. The method getModelCoordinate(...) defined in the class SpatialReferenceInfo can be used to transform this outWindow into model space.public java.awt.image.RenderedImage getRasterImageWithMask(int pyramidLevel, JGeometry window, java.util.Vector layerNo, int zeroMapping, int oneMapping, java.lang.String transportationType, int quality, long[] outWindow)
pyramidLevel
- pyramid levelwindow
- a JGeometry object which represents the area of interest.layerNo
- layer number; note: 0 for object layerzeroMapping
- the value to which the bitmap mask value 0 is mappedoneMapping
- the value to which the bitmap mask value 1 is mappedtransportationType
- specify whether or not to fetch data in compression from the server side; must be one of the following values:
RasterInfo.COMPRESSION_NONE RasterInfo.COMPRESSION_JPEG_F RasterInfo.COMPRESSION_DEFLATE
quality
- JPEG compression quality, which is the degree of lossiness caused by the compression. Must be an integer from 0 (lowest quality) through 100 (highest quality).outWindow
- a long array returning the coordinates of the upper-left and lower-right corners of the output window in the cell space. Note that the caller must pass in a long array, and the length of the array should be 4. The method getModelCoordinate(...) defined in the class SpatialReferenceInfo can be used to transform this outWindow into model space.public java.awt.image.RenderedImage getRasterImageWithMask(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, java.util.Vector layerNo, int zeroMapping, int oneMapping, long[] outWindow)
pyramidLevel
- pyramid levelstartRow
- start row number, not including ULTCoordinatestartColumn
- start column number, not including ULTCoordinateendRow
- end row number, not including ULTCoordinateendColumn
- end column number, not including ULTCoordinatelayerNo
- layer number; note: 0 for object layerzeroMapping
- the value to which the bitmap mask value 0 is mappedoneMapping
- the value to which the bitmap mask value 1 is mappedoutWindow
- a long array returning the coordinates of the upper-left and lower-right corners of the output window in the cell space. Note that the caller must pass in a long array, and the length of the array should be 4. The method getModelCoordinate(...) defined in the class SpatialReferenceInfo can be used to transform this outWindow into model space.public java.awt.image.RenderedImage getRasterImageWithMask(int pyramidLevel, long startRow, long startColumn, long endRow, long endColumn, java.util.Vector layerNo, int zeroMapping, int oneMapping, java.lang.String transportationType, int quality, long[] outWindow)
pyramidLevel
- pyramid levelstartRow
- start row number, not including ULTCoordinatestartColumn
- start column number, not including ULTCoordinateendRow
- end row number, not including ULTCoordinateendColumn
- end column number, not including ULTCoordinatelayerNo
- layer number; note: 0 for object layerzeroMapping
- the value to which the bitmap mask value 0 is mappedoneMapping
- the value to which the bitmap mask value 1 is mappedtransportationType
- specify whether or not to fetch data in compression from the server side; must be one of the following values:
RasterInfo.COMPRESSION_NONE RasterInfo.COMPRESSION_JPEG_F RasterInfo.COMPRESSION_DEFLATE
quality
- JPEG compression quality, which is the degree of lossiness caused by the compression. Must be an integer from 0 (lowest quality) through 100 (highest quality).outWindow
- a long array returning the coordinates of the upper-left and lower-right corners of the output window in the cell space. Note that the caller must pass in a long array, and the length of the array should be 4. The method getModelCoordinate(...) defined in the class SpatialReferenceInfo can be used to transform this outWindow into model space.public int getTotalBandNumber()
public boolean isVirtualMosaic()