Package oracle.spatial.georaster
Class SubLayerInfo
- java.lang.Object
-
- oracle.spatial.georaster.SubLayerInfo
-
public class SubLayerInfo extends java.lang.ObjectSubLayerInfo is a Java class mapped to the XML element subLayer or objectLayer in the Oracle Spatial GeoRaster metadata.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBIN_TYPE_EXPLICITA string indicating EXPLICIT value bin function definition.static java.lang.StringBIN_TYPE_LINEARA string indicating LINEAR bin function definition.static java.lang.StringBIN_TYPE_LOGARITHMA string indicating LOGARITHM bin function definition.
-
Constructor Summary
Constructors Modifier Constructor Description protectedSubLayerInfo(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNODATARange(java.lang.Double min, java.lang.Double max)Adds a new NODATA range.voidaddNODATAValue(double nodata)Adds a NODATA value.voiddeleteNODATARange(java.lang.Double min, java.lang.Double max)Removes a new NODATA range.voiddeleteNODATAValue(double nodata)Removes a NODATA value.java.util.VectorgetBinFunctionData()Returns the bin function data as a vector, which stores four elements in the following order: totalSegNumber(Integer),firstSegNumber(Integer),Extent_Min(Double),Extent_Max(Double)java.lang.StringgetBinFunctionTableName()Returns the bin function table name.java.lang.StringgetBinFunctionType()Returns the bin function type.GeorColormapgetColormap()Returns a georColormap instance which is constructed by colormap data associated with the specific layer of the current JGeoRaster object.java.lang.StringgetColormapTableName()Returns the color map table name.protected java.util.VectorgetColormapVector()Returns the color map as a vector, which stores all (value,red,green,blue,alpha) in order.java.util.VectorgetDescription()Returns the description.GeorGrayscalegetGrayscale()Returns the gray scale as a GeorGrayscale object.java.lang.StringgetGrayscaleTableName()Returns the gray scale table name.protected java.util.VectorgetGrayscaleVector()Returns the gray scale as a vector, which stores all value and gray pairs.GeorHistogramgetHistogram()Returns the histogram as a GeorHistogram object.java.lang.StringgetHistogramTableName()Returns the histogram table name.protected java.util.VectorgetHistogramVector()Returns the histogram as a vector, which stores all value and count pairs.protected voidgetJSONString(java.lang.StringBuilder jsonString, java.lang.String objectName)Returns a JSON string represented by this GeoRaster Metadata subcomponent.java.lang.IntegergetLayerDimensionOrdinate()Returns the layer dimension ordinate.java.lang.StringgetLayerID()Returns the layer ID.java.lang.IntegergetLayerNumber()Returns the layer number.java.lang.DoublegetMax()Returns the statistics maximum value.java.lang.DoublegetMean()Returns the statistics mean value.java.lang.DoublegetMedian()Returns the statistics median value.java.lang.DoublegetMin()Returns the statistics minimum value.java.lang.DoublegetModeValue()Returns the statistics mode value.java.lang.BooleangetNODATAMask()Returns true if NODATA is mask.java.util.VectorgetNODATARange()Returns the NODATA range vector.java.util.VectorgetNODATAValue()Returns the NODATA value vector.java.lang.IntegergetSamplingFactor()Returns the sampling factor.java.lang.IntegergetSamplingWindowColumnWidth()Returns the sampling window column width.java.lang.LonggetSamplingWindowOrigin(int dimension)Returns the sampling window origin point for the specified dimension.java.lang.IntegergetSamplingWindowRowHeight()Returns the sampling window row height.java.util.VectorgetScalingFunction()Returns the scaling function as a vector, and coefficients are stored in the vector in the following order: a0,a1,b0,b1java.lang.DoublegetSTD()Returns the statistics STD value.java.lang.StringgetVATName()Returns the VAT table name.protected voidgetXMLString(java.lang.String indent, java.lang.StringBuilder xmlString)java.lang.BooleanhasBitmapMask()Returns true if there is a bitmap mask associated with this layer.protected voidinitialize()protected voidpopulateMetadata(org.w3c.dom.Node node)voidsetBinFunctionTableName(java.lang.String binTableName)Sets the bin function table name.voidsetBinFunctionType(java.lang.String binFunctionType)Sets the bin function type.voidsetBitmapMask(java.lang.Boolean isBitmapMask)Sets true if there is a bitmap mask associated with this layer.voidsetBitmapMaskAsNODATA(java.lang.Boolean mask)Sets true if NODATA is mask.voidsetColormap(GeorColormap colormap)Sets the colormap information for the specific layer in the metadata based on data stored in the GeorColormap object.voidsetColormapTableName(java.lang.String name)Sets the color map table name.protected voidsetColormapVector(java.util.Vector colormap)Sets the color map by specifying a vector which stores all (value,red,green,blue,alpha) in order.voidsetDescription(java.util.Vector description)Sets the description.voidsetGrayscale(GeorGrayscale grayscale)Sets the gray scale by specifying a GeorGrayscale object.voidsetGrayscaleTableName(java.lang.String name)Sets the gray scale table name.protected voidsetGrayscaleVector(java.util.Vector grayscale)Sets the gray scale by specifying a vector which stores all value and gray pairs.voidsetHistogram(GeorHistogram histogram)Sets the histogram by specifying a GeorHistogram object.voidsetHistogramTableName(java.lang.String name)Sets the histogram table name.protected voidsetHistogramVector(java.util.Vector histogram)Sets the histogram by a specifying vector which stores all value and count pairs.voidsetLayerDimensionOrdinate(java.lang.Integer layerDimensionOrdinate)Sets the layer dimension ordinate.voidsetLayerID(java.lang.String layerID)Sets the layer ID.voidsetLayerNumber(java.lang.Integer layerNumber)Sets the layer number.voidsetMax(java.lang.Double max)Sets the statistics maximum value.voidsetMean(java.lang.Double mean)Sets the statistics mean value.voidsetMedian(java.lang.Double median)Sets the statistics median value.voidsetMin(java.lang.Double min)Sets the statistics minimum value.voidsetModeValue(java.lang.Double mode)Sets the statistics mode value.voidsetSamplingFactor(java.lang.Integer factor)Sets the sampling factor.voidsetSamplingWindowColumnWidth(java.lang.Integer width)Sets the sampling window column width.voidsetSamplingWindowOrigin(int dimension, java.lang.Long origin)Sets the sampling window origin point for the specified dimension.voidsetSamplingWindowRowHeight(java.lang.Integer height)Sets the sampling window row height.voidsetScalingFunction(double a0, double a1, double b0, double b1)Sets the scaling function coefficient a0,a1,b0,b1.voidsetSTD(java.lang.Double STD)Sets the statistics STD value.voidsetVATName(java.lang.String name)Sets the VAT table name.protected booleanvalidate()
-
-
-
Field Detail
-
BIN_TYPE_LINEAR
public static final java.lang.String BIN_TYPE_LINEAR
A string indicating LINEAR bin function definition.- See Also:
- Constant Field Values
-
BIN_TYPE_LOGARITHM
public static final java.lang.String BIN_TYPE_LOGARITHM
A string indicating LOGARITHM bin function definition.- See Also:
- Constant Field Values
-
BIN_TYPE_EXPLICIT
public static final java.lang.String BIN_TYPE_EXPLICIT
A string indicating EXPLICIT value bin function definition.- See Also:
- Constant Field Values
-
-
Method Detail
-
getLayerNumber
public java.lang.Integer getLayerNumber()
Returns the layer number.- Returns:
- layer number.
-
setLayerNumber
public void setLayerNumber(java.lang.Integer layerNumber)
Sets the layer number.- Parameters:
layerNumber- layer number
-
getLayerDimensionOrdinate
public java.lang.Integer getLayerDimensionOrdinate()
Returns the layer dimension ordinate.- Returns:
- layer dimension ordinate.
-
setLayerDimensionOrdinate
public void setLayerDimensionOrdinate(java.lang.Integer layerDimensionOrdinate)
Sets the layer dimension ordinate.- Parameters:
layerDimensionOrdinate- layer dimension ordinate
-
getLayerID
public java.lang.String getLayerID()
Returns the layer ID.- Returns:
- layer ID.
-
setLayerID
public void setLayerID(java.lang.String layerID)
Sets the layer ID.- Parameters:
layerID- layer ID
-
getDescription
public java.util.Vector getDescription()
Returns the description.- Returns:
- description.
-
setDescription
public void setDescription(java.util.Vector description)
Sets the description.- Parameters:
description- description
-
hasBitmapMask
public java.lang.Boolean hasBitmapMask()
Returns true if there is a bitmap mask associated with this layer.- Returns:
- true if there is a bitmap mask associated with this layer.
-
setBitmapMask
public void setBitmapMask(java.lang.Boolean isBitmapMask)
Sets true if there is a bitmap mask associated with this layer.- Parameters:
isBitmapMask- true if there is a bitmap mask associated with this layer
-
getNODATAValue
public java.util.Vector getNODATAValue()
Returns the NODATA value vector.- Returns:
- NODATA value vector.
-
addNODATAValue
public void addNODATAValue(double nodata)
Adds a NODATA value.- Parameters:
nodata- NODATA value
-
deleteNODATAValue
public void deleteNODATAValue(double nodata)
Removes a NODATA value.- Parameters:
nodata- NODATA value
-
getNODATARange
public java.util.Vector getNODATARange()
Returns the NODATA range vector.- Returns:
- NODATA range vector.
-
addNODATARange
public void addNODATARange(java.lang.Double min, java.lang.Double max)Adds a new NODATA range.- Parameters:
min- minimum valuemax- maximum value
-
deleteNODATARange
public void deleteNODATARange(java.lang.Double min, java.lang.Double max)Removes a new NODATA range.- Parameters:
min- minimum valuemax- maximum value
-
getNODATAMask
public java.lang.Boolean getNODATAMask()
Returns true if NODATA is mask.- Returns:
- true if NODATA is mask.
-
setBitmapMaskAsNODATA
public void setBitmapMaskAsNODATA(java.lang.Boolean mask)
Sets true if NODATA is mask.- Parameters:
mask- true if NODATA is mask
-
getScalingFunction
public java.util.Vector getScalingFunction()
Returns the scaling function as a vector, and coefficients are stored in the vector in the following order: a0,a1,b0,b1Pixel value is scaled as:
value = (a0 + a1 * cellValue)/(b0 + b1 * cellValue)- Returns:
- scaling function.
-
setScalingFunction
public void setScalingFunction(double a0, double a1, double b0, double b1)Sets the scaling function coefficient a0,a1,b0,b1.- Parameters:
a0- coefficient a0.a1- coefficient a1.b0- coefficient b0.b1- coefficient b1.
-
getBinFunctionType
public java.lang.String getBinFunctionType()
Returns the bin function type.- Returns:
- bin function type.
-
setBinFunctionType
public void setBinFunctionType(java.lang.String binFunctionType)
Sets the bin function type.- Parameters:
binFunctionType- bin function type
-
getBinFunctionData
public java.util.Vector getBinFunctionData()
Returns the bin function data as a vector, which stores four elements in the following order: totalSegNumber(Integer),firstSegNumber(Integer),Extent_Min(Double),Extent_Max(Double)- Returns:
- bin function data.
-
getBinFunctionTableName
public java.lang.String getBinFunctionTableName()
Returns the bin function table name.- Returns:
- bin function table name.
-
setBinFunctionTableName
public void setBinFunctionTableName(java.lang.String binTableName)
Sets the bin function table name.- Parameters:
binTableName- bin function table name
-
getSamplingFactor
public java.lang.Integer getSamplingFactor()
Returns the sampling factor.- Returns:
- sampling factor.
-
setSamplingFactor
public void setSamplingFactor(java.lang.Integer factor)
Sets the sampling factor.- Parameters:
factor- sampling factor
-
getSamplingWindowOrigin
public java.lang.Long getSamplingWindowOrigin(int dimension)
Returns the sampling window origin point for the specified dimension.- Parameters:
dimension- specified dimension- Returns:
- sampling window origin point for the specified dimension.
-
setSamplingWindowOrigin
public void setSamplingWindowOrigin(int dimension, java.lang.Long origin)Sets the sampling window origin point for the specified dimension.- Parameters:
dimension- specified dimensionorigin- sampling window origin point for the specified dimension
-
getSamplingWindowRowHeight
public java.lang.Integer getSamplingWindowRowHeight()
Returns the sampling window row height.- Returns:
- sampling window row height.
-
setSamplingWindowRowHeight
public void setSamplingWindowRowHeight(java.lang.Integer height)
Sets the sampling window row height.- Parameters:
height- sampling window row height
-
getSamplingWindowColumnWidth
public java.lang.Integer getSamplingWindowColumnWidth()
Returns the sampling window column width.- Returns:
- sampling window column width.
-
setSamplingWindowColumnWidth
public void setSamplingWindowColumnWidth(java.lang.Integer width)
Sets the sampling window column width.- Parameters:
width- sampling window column width
-
getMin
public java.lang.Double getMin()
Returns the statistics minimum value.- Returns:
- statistics minimum value.
-
setMin
public void setMin(java.lang.Double min)
Sets the statistics minimum value.- Parameters:
min- statistics minimum value
-
getMax
public java.lang.Double getMax()
Returns the statistics maximum value.- Returns:
- statistics maximum value.
-
setMax
public void setMax(java.lang.Double max)
Sets the statistics maximum value.- Parameters:
max- statistics maximum value
-
getMean
public java.lang.Double getMean()
Returns the statistics mean value.- Returns:
- statistics mean value.
-
setMean
public void setMean(java.lang.Double mean)
Sets the statistics mean value.- Parameters:
mean- statistics mean value
-
getMedian
public java.lang.Double getMedian()
Returns the statistics median value.- Returns:
- statistics median value.
-
setMedian
public void setMedian(java.lang.Double median)
Sets the statistics median value.- Parameters:
median- statistics median value
-
getModeValue
public java.lang.Double getModeValue()
Returns the statistics mode value.- Returns:
- statistics mode value.
-
setModeValue
public void setModeValue(java.lang.Double mode)
Sets the statistics mode value.- Parameters:
mode- statistics mode value
-
getSTD
public java.lang.Double getSTD()
Returns the statistics STD value.- Returns:
- statistics STD value.
-
setSTD
public void setSTD(java.lang.Double STD)
Sets the statistics STD value.- Parameters:
STD- statistics STD value
-
getHistogramTableName
public java.lang.String getHistogramTableName()
Returns the histogram table name.- Returns:
- histogram table name.
-
setHistogramTableName
public void setHistogramTableName(java.lang.String name)
Sets the histogram table name.- Parameters:
name- histogram table name
-
getHistogramVector
protected java.util.Vector getHistogramVector()
Returns the histogram as a vector, which stores all value and count pairs.- Returns:
- histogram vector.
-
getHistogram
public GeorHistogram getHistogram()
Returns the histogram as a GeorHistogram object.- Returns:
- GeorHistogram object.
-
setHistogramVector
protected void setHistogramVector(java.util.Vector histogram)
Sets the histogram by a specifying vector which stores all value and count pairs.- Parameters:
histogram- histogram vector.
-
setHistogram
public void setHistogram(GeorHistogram histogram)
Sets the histogram by specifying a GeorHistogram object.- Parameters:
histogram- GeorHistogram object.
-
getGrayscaleTableName
public java.lang.String getGrayscaleTableName()
Returns the gray scale table name.- Returns:
- gray scale table name.
-
setGrayscaleTableName
public void setGrayscaleTableName(java.lang.String name)
Sets the gray scale table name.- Parameters:
name- gray scale table name
-
getGrayscaleVector
protected java.util.Vector getGrayscaleVector()
Returns the gray scale as a vector, which stores all value and gray pairs.- Returns:
- gray scale vector.
-
getGrayscale
public GeorGrayscale getGrayscale()
Returns the gray scale as a GeorGrayscale object.- Returns:
- gray scale.
-
setGrayscaleVector
protected void setGrayscaleVector(java.util.Vector grayscale)
Sets the gray scale by specifying a vector which stores all value and gray pairs.- Parameters:
grayscale- gray scale vector
-
setGrayscale
public void setGrayscale(GeorGrayscale grayscale)
Sets the gray scale by specifying a GeorGrayscale object.- Parameters:
grayscale- GeorGrayscale object
-
getColormapTableName
public java.lang.String getColormapTableName()
Returns the color map table name.- Returns:
- color map table name.
-
setColormapTableName
public void setColormapTableName(java.lang.String name)
Sets the color map table name.- Parameters:
name- color map table name
-
getColormap
public GeorColormap getColormap()
Returns a georColormap instance which is constructed by colormap data associated with the specific layer of the current JGeoRaster object.- Returns:
- a GeorColormap instance or null.
-
setColormap
public void setColormap(GeorColormap colormap)
Sets the colormap information for the specific layer in the metadata based on data stored in the GeorColormap object.- Parameters:
colormap- GeorColormap object
-
getColormapVector
protected java.util.Vector getColormapVector()
Returns the color map as a vector, which stores all (value,red,green,blue,alpha) in order.- Returns:
- color map vector.
-
setColormapVector
protected void setColormapVector(java.util.Vector colormap)
Sets the color map by specifying a vector which stores all (value,red,green,blue,alpha) in order.- Parameters:
colormap- color map vector
-
getVATName
public java.lang.String getVATName()
Returns the VAT table name.- Returns:
- VAT table name.
-
setVATName
public void setVATName(java.lang.String name)
Sets the VAT table name.- Parameters:
name- VAT table name
-
initialize
protected void initialize()
-
validate
protected boolean validate() throws GeoRasterException- Throws:
GeoRasterException
-
getJSONString
protected void getJSONString(java.lang.StringBuilder jsonString, java.lang.String objectName) throws GeoRasterExceptionReturns a JSON string represented by this GeoRaster Metadata subcomponent.- Throws:
GeoRasterException
-
getXMLString
protected void getXMLString(java.lang.String indent, java.lang.StringBuilder xmlString) throws GeoRasterException- Throws:
GeoRasterException
-
populateMetadata
protected void populateMetadata(org.w3c.dom.Node node)
-
-