|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.datasourcesraster.Raster
public class Raster
An in-memory representation of a dynamic raster that can perform resampling and reprojection.
The Raster object is a transient representation of raster data that performs resampling and reprojection. It can be modified without affecting the source data. This allows the raster to represent what you want, as you may set a transformation, a pixel filter on a raster or specify a projection, extent, and cell size into which the input data will be transformed. This makes the raster quite useful for performing display or analysis in a coordinate system different from that which is stored in the raster dataset.
Because of the transient nature of the raster, any modifications that are made to this object will be lost when the object is released. The modified Raster can be persisted to another raster dataset on disk or in a geodatabase using ISaveAs or IRasterBandCollection interface.
Although the Raster object is always transient in nature, it must be associated with one or more raster bands, which provide a source for data to be read through the raster. As such, the Raster is most easily understood as a vehicle to provide resampling, projection, and data type conversion from one or more raster bands to a desired output coordinate system.
A Raster can be created in three ways:
1. Get from a RasterLayer using IRasterLayer::Raster
2. Create from a raster dataset using either :IRasterDataset::CreateDefaultRaster or IRasterDataset2::CreateFullRaster
3. Cocreate a Raster and append raster bands using IRasterBandCollection interface.
Constructor Summary | |
---|---|
Raster()
Constructs a Raster using ArcGIS Engine. |
|
Raster(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. Raster theRaster = (Raster) obj; |
Method Summary | |
---|---|
void |
add(IRasterBand element,
int index)
Adds a RasterBand to the band collection. |
void |
appendBand(IRasterBand element)
Appends a RasterBand to the band collection. |
void |
appendBands(IRasterBandCollection bands)
Appends a collection of RasterBands to the band collection. |
void |
assign(IClone src)
Assigns the properties of src to the receiver. |
boolean |
canEdit()
Checks if this Raster can be edited. |
boolean |
canSaveAs(String format)
Checks if it's can be saved as a new persistent Dataset of a given format. |
void |
clear()
Removes all the elements in the collection. |
IRasterCursor |
createCursor()
Allocates a Raster Cursor for fast raster scanning. |
IRasterCursor |
createCursorEx(IPnt pBlockSize)
Creates a cursor with a given pixel block size or native block size. |
IPixelBlock |
createPixelBlock()
Create a compatible pixel block. |
IPixelBlock |
createPixelBlock(IPnt size)
Allocates a PixelBlock of requested size. |
boolean |
equals(Object o)
Compare this object with another |
void |
erase(IPnt pTlc,
IPixelBlock pPixelBlock)
Erases a PixelBlock starting at a given Top-Left corner. |
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone. |
void |
flush()
Flushes buffered data. |
IEnvelope |
getAnalysisExtent()
The analysis extent of the raster. |
ITable |
getAttributeTable()
The raster value attribute table. |
IRasterBand |
getBandByName(String name)
A RasterBand given its name. |
int |
getBandIndex(String name)
The index of a RasterBand given its name. |
IEnumRasterBand |
getBands()
All the bands in the collection as an interface to the RasterBands enumerator object. |
static String |
getClsid()
getClsid. |
IRasterColormap |
getColormap()
The colormap. |
int |
getCount()
The number of bands in the collection. |
IEnvelope |
getDefaultIntersectExtent()
The default intersect extent. |
double |
getDefaultPixelHeight()
The default pixel size in Y. |
double |
getDefaultPixelWidth()
The default pixel size in X. |
ISpatialReference |
getDefaultSpatialReference()
The default spatial reference. |
IEnvelope |
getDefaultUnionExtent()
The default union extent. |
IEnvelope |
getExtent()
The extent of the Raster. |
IGeodataXform |
getGeodataXform()
The geodata transform. |
IGeoTransformationOperationSet |
getGeoTransformations()
The set of geographic transformations to be applied. |
int |
getHeight()
Height in pixels. |
Object |
getNoDataValue()
Data value used to indicate invalid or excluded data. |
IPixelFilter |
getPixelFilter()
The pixel filter for filtering pixel values. |
double |
getPixelHeight()
The pixel height in ground resolution. |
int |
getPixelType()
Data type of the pixels. |
Object |
getPixelValue(int iBand,
int iColumn,
int iRow)
Gets the pixel value for a given band at a given column and row. |
double |
getPixelWidth()
The pixel width in ground resolution. |
IRasterDataset |
getRasterDataset()
The parent raster dataset. |
IRasterInfo |
getRasterInfo()
The raster information. |
IRasterXformer |
getRasterXformer()
The raster transformer. |
int |
getResampleMethod()
Interpolation method used when reading pixels. |
int |
getResamplingHint()
The raster resampling hint. |
ISpatialReference |
getSpatialReference()
SpatialReference of the Raster. |
int |
getWidth()
Width in pixels. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
boolean |
isEqual(IClone other)
Indicates if the receiver and other have the same properties. |
boolean |
isIdentical(IClone other)
Indicates if the receiver and other are the same object. |
boolean |
isInteger()
Indicates if the data is integer. |
IRasterBand |
item(int bandIndex)
Returns a RasterBand given its index. |
void |
makePermanent()
Makes a temporary raster a permanent raster dataset. |
void |
mapToPixel(double x,
double y,
int[] pColumn,
int[] pRow)
Converts a location (x, y) in map space into pixel space. |
IPnt |
meanCellSize()
Returns the approximate cell size of the raster. |
void |
pixelToMap(int iColumn,
int iRow,
double[] pX,
double[] pY)
Converts a location (column, row) in pixel space into map space. |
void |
read(IPnt tlc,
IPixelBlock block)
Read a block of pixels starting from the top left corner. |
void |
readBlock(int tx,
int ty,
int level,
IPixelBlock pPixelBlock)
Reads a raw pixel block. |
void |
refresh()
Refreshes the associated RasterDataset. |
void |
remove(int index)
Removes an element from the collection. |
void |
resetToDefault()
Resets the raster to default state |
IDataset |
saveAs(String new_name,
IWorkspace worksp,
String format)
Creates a new persistent RasterDataset with the bands in the collection. |
IRasterDataset |
saveAsRasterDataset(String name,
IWorkspace workspace,
String format,
IRasterStorageDef storageDef)
Creates a new persistent Raster Dataset of a given format and specified storage definition. |
void |
setAnalysisExtentByRef(IEnvelope ppExtent)
The analysis extent of the raster. |
void |
setAttributeTableByRef(ITable ppVAT)
The raster value attribute table. |
void |
setColormapByRef(IRasterColormap ppColormap)
The colormap. |
void |
setExtent(IEnvelope ppExtent)
The extent of the Raster. |
void |
setGeodataXform(IGeodataXform ppXform)
The geodata transform. |
void |
setGeoTransformationsByRef(IGeoTransformationOperationSet ppGeoXforms)
The set of geographic transformations to be applied. |
void |
setHeight(int pVal)
Height in pixels. |
void |
setNoDataValue(Object pVal)
Data value used to indicate invalid or excluded data. |
void |
setPixelFilterByRef(IPixelFilter ppFilter)
The pixel filter for filtering pixel values. |
void |
setPixelHeight(double height)
The pixel height in ground resolution. |
void |
setPixelType(int pVal)
Data type of the pixels. |
void |
setPixelWidth(double width)
The pixel width in ground resolution. |
void |
setResampleMethod(int val)
Interpolation method used when reading pixels. |
void |
setResamplingHint(int pHint)
The raster resampling hint. |
void |
setSpatialReference(ISpatialReference ppSpref)
SpatialReference of the Raster. |
void |
setWidth(int pVal)
Width in pixels. |
double |
toMapX(int iColumn)
Maps a pixel column to the x coordinate in map space. |
double |
toMapY(int iRow)
Maps a pixel row to the y coordinate in map space. |
int |
toPixelColumn(double x)
Maps a x coordinate in map space to the pixel column. |
int |
toPixelRow(double y)
Maps a y coordinate in map space to the pixel row. |
void |
write(IPnt pTlc,
IPixelBlock pPixelBlock)
Writes a PixelBlock starting at a given Top-Left corner. |
void |
writeBlock(int tx,
int ty,
int level,
IPixelBlock pPixelBlock)
Writes a raw pixel block. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public Raster() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic Raster(Object obj) throws IOException
Raster theRaster = (Raster) obj;
obj
to Raster
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void read(IPnt tlc, IPixelBlock block) throws IOException, AutomationException
read
in interface IRaster
tlc
- A reference to a com.esri.arcgis.geodatabase.IPnt (in)block
- A reference to a com.esri.arcgis.geodatabase.IPixelBlock (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPixelBlock createPixelBlock(IPnt size) throws IOException, AutomationException
CreatePixelBlock method only initializes the properties of a pixel block, such as dimension, pixel type etc. Read method of this interface should be used to read pixels into the pixel block.
createPixelBlock
in interface IRaster
size
- A reference to a com.esri.arcgis.geodatabase.IPnt (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IRasterCursor createCursor() throws IOException, AutomationException
createCursor
in interface IRaster
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getResampleMethod() throws IOException, AutomationException
getResampleMethod
in interface IRaster
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setResampleMethod(int val) throws IOException, AutomationException
setResampleMethod
in interface IRaster
val
- A com.esri.arcgis.geodatabase.rstResamplingTypes constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGeodataXform getGeodataXform() throws IOException, AutomationException
After you set a GeodataXform on a Raster and perform SaveAs, you must also set the extent, width and height of the raster in the space after the transformation.
getGeodataXform
in interface IRaster2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setGeodataXform(IGeodataXform ppXform) throws IOException, AutomationException
The put GeodataXform does not automatically update the extent and cell size, to save out a transformed raster, you need to transform the extent and cell size first, then put the transformed extent and cell size on the raster, the call SaveAs.
setGeodataXform
in interface IRaster2
ppXform
- A reference to a com.esri.arcgis.geodatabase.IGeodataXform (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setGeoTransformationsByRef(IGeoTransformationOperationSet ppGeoXforms) throws IOException, AutomationException
setGeoTransformationsByRef
in interface IRaster2
ppGeoXforms
- A reference to a com.esri.arcgis.geometry.IGeoTransformationOperationSet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGeoTransformationOperationSet getGeoTransformations() throws IOException, AutomationException
getGeoTransformations
in interface IRaster2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITable getAttributeTable() throws IOException, AutomationException
getAttributeTable
in interface IRaster2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAttributeTableByRef(ITable ppVAT) throws IOException, AutomationException
setAttributeTableByRef
in interface IRaster2
ppVAT
- A reference to a com.esri.arcgis.geodatabase.ITable (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IRasterColormap getColormap() throws IOException, AutomationException
getColormap
in interface IRaster2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setColormapByRef(IRasterColormap ppColormap) throws IOException, AutomationException
setColormapByRef
in interface IRaster2
ppColormap
- A reference to a com.esri.arcgis.geodatabase.IRasterColormap (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IRasterDataset getRasterDataset() throws IOException, AutomationException
getRasterDataset
in interface IRaster2
getRasterDataset
in interface IRasterAnalysisProps
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IRasterCursor createCursorEx(IPnt pBlockSize) throws IOException, AutomationException
createCursorEx
in interface IRaster2
pBlockSize
- A reference to a com.esri.arcgis.geodatabase.IPnt (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IRasterXformer getRasterXformer() throws IOException, AutomationException
getRasterXformer
in interface IRaster2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void mapToPixel(double x, double y, int[] pColumn, int[] pRow) throws IOException, AutomationException
mapToPixel
in interface IRaster2
x
- The x (in)y
- The y (in)pColumn
- The pColumn (out: use single element array)pRow
- The pRow (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void pixelToMap(int iColumn, int iRow, double[] pX, double[] pY) throws IOException, AutomationException
pixelToMap
in interface IRaster2
iColumn
- The iColumn (in)iRow
- The iRow (in)pX
- The pX (out: use single element array)pY
- The pY (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int toPixelColumn(double x) throws IOException, AutomationException
toPixelColumn
in interface IRaster2
x
- The x (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int toPixelRow(double y) throws IOException, AutomationException
toPixelRow
in interface IRaster2
y
- The y (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double toMapX(int iColumn) throws IOException, AutomationException
toMapX
in interface IRaster2
iColumn
- The iColumn (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double toMapY(int iRow) throws IOException, AutomationException
toMapY
in interface IRaster2
iRow
- The iRow (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getPixelValue(int iBand, int iColumn, int iRow) throws IOException, AutomationException
getPixelValue
in interface IRaster2
iBand
- The iBand (in)iColumn
- The iColumn (in)iRow
- The iRow (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean canEdit() throws IOException, AutomationException
canEdit
in interface IRasterEdit
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void write(IPnt pTlc, IPixelBlock pPixelBlock) throws IOException, AutomationException
write
in interface IRasterEdit
pTlc
- A reference to a com.esri.arcgis.geodatabase.IPnt (in)pPixelBlock
- A reference to a com.esri.arcgis.geodatabase.IPixelBlock (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void erase(IPnt pTlc, IPixelBlock pPixelBlock) throws IOException, AutomationException
erase
in interface IRasterEdit
pTlc
- A reference to a com.esri.arcgis.geodatabase.IPnt (in)pPixelBlock
- A reference to a com.esri.arcgis.geodatabase.IPixelBlock (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void refresh() throws IOException, AutomationException
refresh
in interface IRasterEdit
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getWidth() throws IOException, AutomationException
getWidth
in interface IRasterProps
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setWidth(int pVal) throws IOException, AutomationException
setWidth
in interface IRasterProps
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getHeight() throws IOException, AutomationException
getHeight
in interface IRasterProps
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setHeight(int pVal) throws IOException, AutomationException
setHeight
in interface IRasterProps
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getPixelType() throws IOException, AutomationException
getPixelType
in interface IRasterProps
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setPixelType(int pVal) throws IOException, AutomationException
setPixelType
in interface IRasterProps
pVal
- A com.esri.arcgis.geodatabase.rstPixelType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getNoDataValue() throws IOException, AutomationException
getNoDataValue
in interface IRasterProps
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setNoDataValue(Object pVal) throws IOException, AutomationException
setNoDataValue
in interface IRasterProps
pVal
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPnt meanCellSize() throws IOException, AutomationException
meanCellSize
in interface IRasterProps
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isInteger() throws IOException, AutomationException
isInteger
in interface IRasterProps
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISpatialReference getSpatialReference() throws IOException, AutomationException
getSpatialReference
in interface IRasterProps
getSpatialReference
in interface IGeoDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSpatialReference(ISpatialReference ppSpref) throws IOException, AutomationException
setSpatialReference
in interface IRasterProps
ppSpref
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope getExtent() throws IOException, AutomationException
getExtent
in interface IRasterProps
getExtent
in interface IGeoDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setExtent(IEnvelope ppExtent) throws IOException, AutomationException
setExtent
in interface IRasterProps
ppExtent
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void add(IRasterBand element, int index) throws IOException, AutomationException
This method is only applicable to work with a Raster, not with a RasterDataset.
add
in interface IRasterBandCollection
element
- A reference to a com.esri.arcgis.datasourcesraster.IRasterBand (in)index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getCount() throws IOException, AutomationException
getCount
in interface IRasterBandCollection
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void clear() throws IOException, AutomationException
This method is only applicable to work with a Raster, not with a RasterDataset.
clear
in interface IRasterBandCollection
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void remove(int index) throws IOException, AutomationException
This method is only applicable to work with a Raster, not with a RasterDataset.
remove
in interface IRasterBandCollection
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getBandIndex(String name) throws IOException, AutomationException
getBandIndex
in interface IRasterBandCollection
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IRasterBand getBandByName(String name) throws IOException, AutomationException
getBandByName
in interface IRasterBandCollection
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumRasterBand getBands() throws IOException, AutomationException
getBands
in interface IRasterBandCollection
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IRasterBand item(int bandIndex) throws IOException, AutomationException
item
in interface IRasterBandCollection
bandIndex
- The bandIndex (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IDataset saveAs(String new_name, IWorkspace worksp, String format) throws IOException, AutomationException
The SaveAs method can create a raster dataset in Imagine, TIFF, GRID, JPEG2000, JPEG, BMP, GIF, PNG, PCI Raster, USGS ASCII DEM, X11 Pixmap, Memory Raster and geodatabase raster.
The format strings used for the supported formats are below, and they are case sensitive:
Format Name | String Used |
---|---|
Imagine | "IMAGINE Image" |
TIFF | "TIFF" |
GRID | "GRID" |
JPEG | "JPG" |
JP2000 | "JP2" |
BMP | "BMP" |
PNG | "PNG" |
GIF | "GIF" |
PCI Raster | "PIX" |
X11 Pixmap | "XPM" |
PCRaster | "MAP" |
Memory Raster | "MEM" |
HDF4 | "HDF4" |
BIL | "BIL" |
BIP | "BIP" |
BSQ | "BSQ" |
Idrisi Raster Format | "RST" |
ENVI Raster Format | "ENVI" |
Geodatabase Raster | "GDB" |
The format string "TIFF" creates a TIFF file with ".tif" extension. ArcGIS also supports TIFF format with ".tiff" and ".tff" extensions. A format string "TIF" creates a TIFF file with ".tiff" extention and a format string "TFF" creates a TIFF file with ".tff" extension.
Note, SaveAs will return a RasterDataset, to prevent from SaveAs holding the output, .NET ReleaseCOMObject needs to be called to release the referene to the output raster dataset:
System.Runtime.InteropServices.Marshal.ReleaseComObject(outRasterDS);
saveAs
in interface IRasterBandCollection
saveAs
in interface ISaveAs
new_name
- The new_name (in)worksp
- A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)format
- The format (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void appendBand(IRasterBand element) throws IOException, AutomationException
This method is only applicable to work with a Raster, not with a RasterDataset.
appendBand
in interface IRasterBandCollection
element
- A reference to a com.esri.arcgis.datasourcesraster.IRasterBand (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void appendBands(IRasterBandCollection bands) throws IOException, AutomationException
This method is only applicable to work with a Raster, not with a RasterDataset.
appendBands
in interface IRasterBandCollection
bands
- A reference to a com.esri.arcgis.datasourcesraster.IRasterBandCollection (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getDefaultPixelWidth() throws IOException, AutomationException
getDefaultPixelWidth
in interface IRasterDefaultProps
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getDefaultPixelHeight() throws IOException, AutomationException
getDefaultPixelHeight
in interface IRasterDefaultProps
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope getDefaultUnionExtent() throws IOException, AutomationException
getDefaultUnionExtent
in interface IRasterDefaultProps
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope getDefaultIntersectExtent() throws IOException, AutomationException
getDefaultIntersectExtent
in interface IRasterDefaultProps
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISpatialReference getDefaultSpatialReference() throws IOException, AutomationException
getDefaultSpatialReference
in interface IRasterDefaultProps
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void resetToDefault() throws IOException, AutomationException
resetToDefault
in interface IRasterDefaultProps
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setPixelWidth(double width) throws IOException, AutomationException
setPixelWidth
in interface IRasterAnalysisProps
width
- The width (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getPixelWidth() throws IOException, AutomationException
getPixelWidth
in interface IRasterAnalysisProps
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setPixelHeight(double height) throws IOException, AutomationException
setPixelHeight
in interface IRasterAnalysisProps
height
- The height (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getPixelHeight() throws IOException, AutomationException
getPixelHeight
in interface IRasterAnalysisProps
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope getAnalysisExtent() throws IOException, AutomationException
getAnalysisExtent
in interface IRasterAnalysisProps
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAnalysisExtentByRef(IEnvelope ppExtent) throws IOException, AutomationException
setAnalysisExtentByRef
in interface IRasterAnalysisProps
ppExtent
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void makePermanent() throws IOException, AutomationException
makePermanent
in interface IRasterAnalysisProps
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws IOException, AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean canSaveAs(String format) throws IOException, AutomationException
canSaveAs
in interface ISaveAs
format
- The format (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IRasterDataset saveAsRasterDataset(String name, IWorkspace workspace, String format, IRasterStorageDef storageDef) throws IOException, AutomationException
The pStorageDef argument specified the storage parameters, compression type, compression quality, tile size, ect. The parameters apply to certain output raster format, if the output raster format doesn't support the storage parameter specified, the settings are ignored.
The format strings used for the supported formats are below, and they are case sensitive:
Format Name | String Used |
---|---|
Imagine | "IMAGINE Image" |
TIFF | "TIFF" |
GRID | "GRID" |
JPEG | "JPG" |
JP2000 | "JP2" |
BMP | "BMP" |
PNG | "PNG" |
GIF | "GIF" |
PCI Raster | "PIX" |
X11 Pixmap | "XPM" |
PCRaster | "MAP" |
Memory Raster | "MEM" |
HDF4 | "HDF4" |
BIL | "BIL" |
BIP | "BIP" |
BSQ | "BSQ" |
Idrisi Raster Format | "RST" |
ENVI Raster Format | "ENVI" |
Geodatabase Raster | "GDB" |
saveAsRasterDataset
in interface ISaveAs2
name
- The name (in)workspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)format
- The format (in)storageDef
- A reference to a com.esri.arcgis.geodatabase.IRasterStorageDef (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IClone esri_clone() throws IOException, AutomationException
esri_clone
in interface IClone
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void assign(IClone src) throws IOException, AutomationException
assign
in interface IClone
src
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isEqual(IClone other) throws IOException, AutomationException
IsEqual returns True if the receiver and the source have the same properties. Note, this does not imply that the receiver and the source reference the same object.
isEqual
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isIdentical(IClone other) throws IOException, AutomationException
IsIdentical returns true if the receiver and the source reference the same object.
isIdentical
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPixelFilter getPixelFilter() throws IOException, AutomationException
getPixelFilter
in interface IPixelOperation
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setPixelFilterByRef(IPixelFilter ppFilter) throws IOException, AutomationException
setPixelFilterByRef
in interface IPixelOperation
ppFilter
- A reference to a com.esri.arcgis.datasourcesraster.IPixelFilter (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IRasterInfo getRasterInfo() throws IOException, AutomationException
getRasterInfo
in interface IRawBlocks
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPixelBlock createPixelBlock() throws IOException, AutomationException
createPixelBlock
in interface IRawBlocks
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void readBlock(int tx, int ty, int level, IPixelBlock pPixelBlock) throws IOException, AutomationException
readBlock
in interface IRawBlocks
tx
- The tx (in)ty
- The ty (in)level
- The level (in)pPixelBlock
- A reference to a com.esri.arcgis.geodatabase.IPixelBlock (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeBlock(int tx, int ty, int level, IPixelBlock pPixelBlock) throws IOException, AutomationException
writeBlock
in interface IRawBlocks
tx
- The tx (in)ty
- The ty (in)level
- The level (in)pPixelBlock
- A reference to a com.esri.arcgis.geodatabase.IPixelBlock (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void flush() throws IOException, AutomationException
flush
in interface IRawBlocks
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getResamplingHint() throws IOException, AutomationException
getResamplingHint
in interface IRasterResamplingControl
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setResamplingHint(int pHint) throws IOException, AutomationException
setResamplingHint
in interface IRasterResamplingControl
pHint
- A com.esri.arcgis.geodatabase.esriRasterResamplingHint constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |