|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.sde.sdk.client.SeRasterBand
public class SeRasterBand
A SeRasterBand
object for supporting
ArcSDE SeRaster
object.
SeRasterColumn
,
SeRaster
Nested Class Summary | |
---|---|
static class |
SeRasterBand.SeRasterBandColorMap
SeRasterBand inner class SeRasterBandColorMap . |
static class |
SeRasterBand.SeRasterBandStats
SeRasterBand inner class SeRasterBandStats . |
Constructor Summary | |
---|---|
SeRasterBand(SeConnection conn)
Constructs SeRasterBand with specified
SeConnection handle conn |
Method Summary | |
---|---|
void |
alter()
Alters database entry for raster band |
SeObjectId |
create()
Create a database entry for raster band |
void |
delete()
Delete database entry for raster band |
int |
getBandHeight()
Retrieves raster band's height. |
java.lang.String |
getBandName()
Retrieves band's name from raster band instance. |
int |
getBandNumber()
Retrieves band's sequence number from raster band instance. |
int |
getBandWidth()
Retrieves raster band's width. |
SeRasterBand.SeRasterBandColorMap |
getColorMap()
Returns SeRasterBandColorMap object for this
SeRasterBand instance, if exist,
see . |
java.awt.image.DataBuffer |
getColorMapData()
Gets colormap data, if exist. |
int |
getColorMapDataType()
Gets colormap data type, if exist. |
int |
getColorMapNumBanks()
Gets number of banksin colormap, if exist. |
int |
getColorMapNumEntries()
Gets number of entries per bank in colormap, if exist. |
int |
getColorMapType()
Gets colormap type, if exist. |
int |
getCompressionType()
Retrieves raster band's compression type. |
SeExtent |
getExtent()
Retrieves raster band extent (envelope). |
SeObjectId |
getId()
Retrieves raster band ID. |
void |
getInfoById(SeObjectId rasBandIdObj)
Retrieves raster band in by raster band ID. |
static SeRasterBand[] |
getInfoList(SeConnection conn,
SeObjectId rasColIdObj)
Deprecated. Recommend using SeRaster.getBands() instead,
which is much more efficient since the records will be cached
on the client side following the first execution.
getInfoList() will not cache the results and
therefore should be replaced with a call to
SeRaster.getBands() . |
int |
getInterleave()
Retrieves interleave type. |
int |
getInterpolation()
Retrieves interpolation method |
int |
getMaxLevel()
Retrieves the maximum pyramid level. |
int |
getPixelDepth()
Return pixel depth in number of bits. |
int |
getPixelType()
Retrieves pixel type. |
SeObjectId |
getRasterColumnId()
Retrieves raster_column layer ID. |
SeObjectId |
getRasterId()
Retrieves raster image ID. |
SeRasterBand.SeRasterBandStats |
getStats()
Returns SeRasterBandStats info from ArcSDE server,
if exist, see . |
double[] |
getStatsBinTable()
Retrieves raster band statistic's Bin table, if exist. |
int |
getStatsBinType()
Retrieves raster band statistic's Bin function type, if exist. |
double[] |
getStatsHistogram()
Retrieves raster band statistic's histogram, if exist. |
double |
getStatsMax()
Retrieves max pixel value from raster band statistic, if exist. |
double |
getStatsMean()
Retrieves mean pixel value from raster band statistic, if exist. |
double |
getStatsMin()
Retrieves min pixel value from raster band statistic, if exist. |
int |
getStatsNumBins()
Retrieves number of bins in raster band statistic object, if exist. |
double |
getStatsStdDev()
Retrieves pixel's standard deviation value from raster band statistic, if exist. |
int |
getTileHeight()
Retrieves raster tile's height. |
SDEPoint |
getTileOrigin()
Retrieves the coordinates of the upper-left corner pixel of tile (0, 0) |
int |
getTileWidth()
Retrieves raster tile's width. |
java.util.Date |
getTime(int whichTime)
Retrieves createion_date or last_modified_date from raster band object. |
SeTransform[] |
getTransformList()
Retrieves transform list. |
boolean |
hasColorMap()
Reture true , if raster band has colormap. |
boolean |
hasStats()
Return true , if raster band has statistic info available. |
boolean |
hasTransformList()
Return true , if raster band has transformation list. |
static int |
pixelTypeGetDepth(int pixelType)
Class method: Return bits per pixel from pixel_type. |
void |
setBandName(java.lang.String bandName)
Sets raster band's name in raster band instance. |
void |
setBandNumber(int sequenceNumber)
Sets current raster band's sequence number. |
void |
setBandSize(int bandWidth,
int bandHeight)
Sets raster band size (band_width and band_height). |
void |
setColorMap(int colormapType,
java.awt.image.DataBuffer colormapData)
Sets colormap in raster band instance. |
void |
setColorMap(int colormap_type,
java.awt.image.DataBufferByte buffByte)
Sets colormap in raster band instance. |
void |
setColorMap(int colormap_type,
java.awt.image.DataBufferShort buffShort)
Sets colormap in raster band instance. |
void |
setCompressionType(int compressionType)
Sets compression type. |
void |
setExtent(SeExtent envelope)
Sets image extent in the raster band object. |
void |
setId(SeObjectId bandIdObj)
Sets the raster band ID. |
void |
setMaxLevel(int maxLevel,
boolean skipLevelOne)
Sets the maximum pyramid level of image. |
void |
setPixelType(int pixelType)
Sets pixel type in raster band object. |
void |
setRasterColumnId(SeObjectId rasColIdObj)
Sets raster_column ID. |
void |
setStatsBinFunction(int binFuncType,
int numBins,
double[] binTable)
Sets SeRasterBand instance with specified
binFuncType , numBins and binTable . |
void |
setTileSize(int tileWidth,
int tileHeight)
Sets raster tile's size (tileWidth and tileHeight). |
void |
setTransformList(SeTransform[] transformList)
Sets transform list. |
boolean |
skipLevelOne()
Return true , if skip pyramid level one. |
java.lang.String |
toString()
toString () method for SeRasterBand object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SeRasterBand(SeConnection conn)
SeRasterBand
with specified
SeConnection
handle conn
Top of
class.
SeRasterBand
conn
- a SeConnection
handle.Method Detail |
---|
public void alter() throws SeException
SeException
- if an error occurspublic SeObjectId create() throws SeException
SeObjectId
value
SeException
- if an error occurspublic void delete() throws SeException
SeException
- if an error occurspublic static SeRasterBand[] getInfoList(SeConnection conn, SeObjectId rasColIdObj) throws SeException
SeRaster.getBands()
instead,
which is much more efficient since the records will be cached
on the client side following the first execution.
getInfoList()
will not cache the results and
therefore should be replaced with a call to
SeRaster.getBands()
.
rasColIdObj
conn
- a SeConnection
handle.rasColIdObj
- a SeObjectId
value
SeRasterBand[]
value
SeException
- if an error occursSeRaster.getBands()
,
getInfoById(com.esri.sde.sdk.client.SeConnection, com.esri.sde.sdk.client.SeObjectId, com.esri.sde.sdk.client.SeObjectId)
public void getInfoById(SeObjectId rasBandIdObj) throws SeException
rasBandIdObj
- a SeObjectId
value
SeException
- if an error occursgetInfoList(com.esri.sde.sdk.client.SeConnection, com.esri.sde.sdk.client.SeObjectId)
public java.lang.String getBandName()
String
valuesetBandName(String)
public int getBandNumber()
int
valuesetBandNumber(int)
public int getBandHeight()
int
valuesetBandSize(int, int)
public int getBandWidth()
int
valuesetBandSize(int, int)
public int getCompressionType()
int
valuesetCompressionType(int)
public SeExtent getExtent()
SeExtent
valuesetExtent(SeExtent)
public SeObjectId getId()
SeObjectId
valuepublic int getInterpolation()
int
value
SeRasterAttr.setPyramidInfo(int, boolean, int)
,
SeRasterAttr.getInterpolation()
public int getInterleave()
int
value
SeException
- if an error occurssetInterleaveType(int)
public int getMaxLevel()
int
valuesetMaxLevel(int, boolean)
public int getPixelDepth()
int
valuegetPixelType()
,
setPixelType(int)
public int getPixelType()
setPixelType(int)
for valid pixel_type values.
int
valuegetPixelDepth()
,
setPixelType(int)
public SeObjectId getRasterColumnId()
SeObjectId
valuesetRasterColumnId(com.esri.sde.sdk.client.SeObjectId)
public SeObjectId getRasterId()
SeObjectId
valuepublic int getTileHeight()
int
valuegetTileWidth()
,
setTileSize(int, int)
public int getTileWidth()
int
valuegetTileHeight()
,
setTileSize(int, int)
public SDEPoint getTileOrigin() throws SeException
SDEPoint
value
SeException
- if an error occurspublic java.util.Date getTime(int whichTime) throws SeException
The whichTime argument accepts the following values:
whichTime
- an int
value
java.util.Date
value
SeException
- if an error occurspublic SeTransform[] getTransformList() throws SeException
SeTransform[]
value
SeException
- if an error occurssetTransformList(com.esri.sde.sdk.client.SeTransform[])
public boolean hasTransformList()
true
, if raster band has transformation list.
boolean
valuepublic boolean skipLevelOne()
true
, if skip pyramid level one.
boolean
valuepublic void setId(SeObjectId bandIdObj) throws SeException
bandIdObj
- a SeObjectId
value
SeException
- if an error occurspublic void setBandName(java.lang.String bandName)
bandName
- a String
valuegetBandName()
public void setBandNumber(int sequenceNumber) throws SeException
sequenceNumber
- an int
value
SeException
- if an error occursgetBandNumber()
public void setBandSize(int bandWidth, int bandHeight)
bandWidth
- an int
valuebandHeight
- an int
valuegetBandHeight()
,
getBandWidth()
public void setCompressionType(int compressionType) throws SeException
The compression_type argument accepts the following values:
SeRaster.SE_COMPRESSION_NONE
SeRaster.SE_COMPRESSION_LZ77
SeRaster.SE_COMPRESSION_JPEG
SeRaster.SE_COMPRESSION_JP2
compressionType
- an int
value
SeException
- if an error occursgetCompressionType()
public void setExtent(SeExtent envelope) throws SeException
envelope
- a SeExtent
value. Band extent.
SeException
- if an error occursgetExtent()
public void setMaxLevel(int maxLevel, boolean skipLevelOne) throws SeException
maxLevel
- an int
valueskipLevelOne
- a boolean
value
SeException
- if an error occursgetMaxLevel()
public void setPixelType(int pixelType) throws SeException
The pixelType argument accepts the following values:
SeRaster.SE_PIXEL_TYPE_1BIT
SeRaster.SE_PIXEL_TYPE_4BIT
SeRaster.SE_PIXEL_TYPE_8BIT_U
SeRaster.SE_PIXEL_TYPE_8BIT_S
SeRaster.SE_PIXEL_TYPE_16BIT_U
SeRaster.SE_PIXEL_TYPE_16BIT_S
SeRaster.SE_PIXEL_TYPE_32BIT_U
SeRaster.SE_PIXEL_TYPE_32BIT_S
SeRaster.SE_PIXEL_TYPE_32BIT_REAL
SeRaster.SE_PIXEL_TYPE_64BIT_REAL
pixelType
- an int
value
SeException
- if an error occursgetPixelDepth()
,
getPixelType()
public void setRasterColumnId(SeObjectId rasColIdObj) throws SeException
rasColIdObj
- a SeObjectId
value
SeException
- if an error occursgetRasterColumnId()
public void setTileSize(int tileWidth, int tileHeight) throws SeException
tileWidth
- an int
valuetileHeight
- an int
value
SeException
- if an error occursgetTileHeight()
,
getTileWidth()
public void setTransformList(SeTransform[] transformList) throws SeException
transformList
- an SeTransform[]
value
SeException
- if an error occursgetTransformList()
public static int pixelTypeGetDepth(int pixelType)
public java.lang.String toString()
toString
in class java.lang.Object
String
valuepublic SeRasterBand.SeRasterBandStats getStats() throws SeException
SeRasterBandStats
info from ArcSDE server,
if exist, see hasStats()
.
SeRasterBandStats
value
SeException
- if an error occurshasStats()
public double[] getStatsBinTable() throws SeException
double[]
value
SeException
- if an error occurshasStats()
,
getStats()
,
SeRasterBand.SeRasterBandStats.getBinTable()
public int getStatsBinType() throws SeException
int
value
SeException
- if an error occurshasStats()
,
getStats()
,
SeRasterBand.SeRasterBandStats.getBinType()
public double[] getStatsHistogram() throws SeException
double[]
value
SeException
- if an error occurshasStats()
,
getStats()
,
SeRasterBand.SeRasterBandStats.getHistogram()
public double getStatsMax() throws SeException
double
value
SeException
- if an error occurshasStats()
,
getStats()
,
SeRasterBand.SeRasterBandStats.getMax()
public double getStatsMean() throws SeException
double
value
SeException
- if an error occurshasStats()
,
getStats()
,
SeRasterBand.SeRasterBandStats.getMean()
public double getStatsMin() throws SeException
double
value
SeException
- if an error occurshasStats()
,
getStats()
,
SeRasterBand.SeRasterBandStats.getMin()
public int getStatsNumBins() throws SeException
int
value
SeException
- if an error occurshasStats()
,
getStats()
,
SeRasterBand.SeRasterBandStats.getNumBins()
public double getStatsStdDev() throws SeException
double
value
SeException
- if an error occurshasStats()
,
getStats()
,
SeRasterBand.SeRasterBandStats.getStdDev()
public boolean hasStats()
true
, if raster band has statistic info available.
boolean
valuepublic void setStatsBinFunction(int binFuncType, int numBins, double[] binTable) throws SeException
SeRasterBand
instance with specified
binFuncType
, numBins
and binTable
.
1. If binFuncType
is
,
then the statistics will be removed for the current raster band.
SeRaster.SE_BIN_FUNCTION_NONE
2. If binFuncType
is
,
set numBins=0, binTable=NULL when calling this function.
Then the actual bin function will be selected according to the
pixel type.
SeRaster.SE_BIN_FUNCTION_AUTO
3. If binFuncType
is
, numBins should be set to 0.
The actual number of bins will be based on the dataset.
SeRaster.SE_BIN_FUNCTION_DIRECT
NOTE: This function is expected to be called only with
, alter()
will ignore the bin function information.
create()
binFuncType
- an int
value
SeRaster.SE_BIN_FUNCTION_NONE
SeRaster.SE_BIN_FUNCTION_AUTO
SeRaster.SE_BIN_FUNCTION_DIRECT
SeRaster.SE_BIN_FUNCTION_EXPLICIT
numBins
- an int
valuebinTable
- a double[]
value
SeException
- if an error occurspublic SeRasterBand.SeRasterBandColorMap getColorMap() throws SeException
SeRasterBandColorMap
object for this
SeRasterBand
instance, if exist,
see hasColorMap()
.
SeRasterBandColorMap
value
SeException
- if an error occurshasColorMap()
,
setColorMap(int, java.awt.image.DataBufferByte)
public java.awt.image.DataBuffer getColorMapData() throws SeException
DataBuffer
value
SeException
- if an error occurshasColorMap()
,
getColorMap()
,
SeRasterBand.SeRasterBandColorMap.getData()
public int getColorMapDataType() throws SeException
int
value.
SeException
- if an error occurshasColorMap()
,
getColorMap()
,
SeRasterBand.SeRasterBandColorMap.getDataType()
public int getColorMapNumBanks() throws SeException
int
value
SeException
- if an error occurshasColorMap()
,
getColorMap()
,
SeRasterBand.SeRasterBandColorMap.getNumBanks()
public int getColorMapNumEntries() throws SeException
int
value
SeException
- if an error occurshasColorMap()
,
getColorMap()
,
SeRasterBand.SeRasterBandColorMap.getNumEntries()
public int getColorMapType() throws SeException
int
value
SeException
- if an error occurshasColorMap()
,
getColorMap()
,
SeRasterBand.SeRasterBandColorMap.getColorMapType()
public boolean hasColorMap()
true
, if raster band has colormap.
true
, if raster band has colormap.getColorMap()
public void setColorMap(int colormap_type, java.awt.image.DataBufferByte buffByte) throws SeException
colormap_type
- as an int
valuebuffByte
- a DataBufferByte
value
SeException
- if an error occurssetColorMap(int, DataBuffer)
public void setColorMap(int colormap_type, java.awt.image.DataBufferShort buffShort) throws SeException
colormap_type
- as an int
valuebuffShort
- a DataBufferShort
value
SeException
- if an error occurssetColorMap(int, DataBuffer)
public void setColorMap(int colormapType, java.awt.image.DataBuffer colormapData) throws SeException
The colormapType
will determine the number of banks.
The instanceof colormapData
will determine the data type
and the number of entries per bank.
colormapType
- as an int
value
SeRaster.SE_COLORMAP_RGB
-- need 3 banks
SeRaster.SE_COLORMAP_RGBA
-- need 4 banks
colormapData
- an awt.image.DataBuffer
value as
instanceof awt.image.DataBufferByte
or
awt.image.DataBufferShort
.
instanceof DataBufferByte
-- set data type to SeRaster.SE_COLORMAP_DATA_BYTE
instanceof DataBufferShort
-- set data type to SeRaster.SE_COLORMAP_DATA_SHORT
colormapData.getSize()
SeException
- if an error occursalter()
,
create()
,
getColorMap()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |