|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.datasourcesraster.MosaicRaster
public class MosaicRaster
A mosaic of rasters.
The MosaicRaster coclass represents a special type of Raster that takes a collection of rasters and mosaics them into one seamless raster. The set of rasters can be from any raster formats or geodatabase rasters, it can also be all or a set of rasters in a raster catalog.
The overlapping areas can be resolved by a predefined or custom MosaicOperator.
The mosaic result can be saved to a file raster format or a geodatabase.
IMosaicRaster,
Serialized Form| Constructor Summary | |
|---|---|
MosaicRaster()
Constructs a MosaicRaster using ArcGIS Engine. |
|
MosaicRaster(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. MosaicRaster theMosaicRaster = (MosaicRaster) obj; |
|
| Method Summary | |
|---|---|
void |
append(IRaster pRaster)
Appends a raster to the end. |
boolean |
canSaveAs(String format)
Checks if it's can be saved as a new persistent Dataset of a given format. |
IRasterCursor |
createCursor()
Allocates a Raster Cursor for fast raster scanning. |
IPixelBlock |
createPixelBlock(IPnt size)
Allocates a PixelBlock of requested size. |
void |
empty()
Empties this raster collection. |
boolean |
equals(Object o)
Compare this object with another |
int |
find(IRaster pRaster)
Finds a given raster and returns its index position. |
IRaster |
get(int index)
Gets the raster at a given index position. |
static String |
getClsid()
getClsid. |
IRasterColormap |
getColormap()
The colormap to be used. |
IEnvelope |
getExtent()
The extent of the Raster. |
int |
getHeight()
Height in pixels. |
int |
getMosaicColormapMode()
The current mode for mosaicking pseucolor rasters. |
IMosaicOperator |
getMosaicOperator()
The current mosaic operator. |
int |
getMosaicOperatorType()
The current mosaic operator type. |
Object |
getNoDataValue()
Data value used to indicate invalid or excluded data. |
String |
getOrderByField()
The Order By fields on the base RasterCatalog. |
IPixelFilter |
getPixelFilter()
The pixel filter for filtering pixel values. |
int |
getPixelType()
Data type of the pixels. |
IRasterCatalog |
getRasterCatalog()
The base RasterCatalog. |
IRasterCatalogTable |
getRasterCatalogTable()
The source raster catalog table. |
int |
getRasterCount()
The number of rasters in this raster collection. |
int |
getResampleMethod()
Interpolation method used when reading pixels. |
ISpatialReference |
getSpatialReference()
SpatialReference of the Raster. |
String |
getWhereClause()
The Where Clause on the base RasterCatalog. |
int |
getWidth()
Width in pixels. |
int |
hashCode()
the hashcode for this object |
void |
insert(int index,
IRaster pRaster)
Inserts a raster at a given index. |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
boolean |
isAscending()
Indicates whether the ascending flag of OrderBy. |
boolean |
isInteger()
Indicates if the data is integer. |
IPnt |
meanCellSize()
Returns the approximate cell size of the raster. |
void |
populate(IEnvelope pExtent)
Populates this raster collection from associated RasterCatalog. |
void |
read(IPnt tlc,
IPixelBlock block)
Read a block of pixels starting from the top left corner. |
void |
recalculateCellsize(int type)
Recalculates the cellsize as (min, max, or mean) of all cellsizes. |
void |
remove(int index)
Removes a raster at a given index. |
IDataset |
saveAs(String name,
IWorkspace workspace,
String format)
Creates a new persistent Dataset of a given format. |
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 |
set(int index,
IRaster pRaster)
Sets the raster at a given index position. |
void |
setAscending(boolean ascending)
Indicates whether the ascending flag of OrderBy. |
void |
setColormap(IRasterColormap ppColormap)
The colormap to be used. |
void |
setExtent(IEnvelope ppExtent)
The extent of the Raster. |
void |
setHeight(int pVal)
Height in pixels. |
void |
setMosaicColormapMode(int mode)
The current mode for mosaicking pseucolor rasters. |
void |
setMosaicOperatorByRef(IMosaicOperator op)
The current mosaic operator. |
void |
setMosaicOperatorType(int type)
The current mosaic operator type. |
void |
setNoDataValue(Object pVal)
Data value used to indicate invalid or excluded data. |
void |
setOrderByField(String orderByField)
The Order By fields on the base RasterCatalog. |
void |
setPixelFilterByRef(IPixelFilter ppFilter)
The pixel filter for filtering pixel values. |
void |
setPixelType(int pVal)
Data type of the pixels. |
void |
setRasterCatalogByRef(IRasterCatalog ppCatalog)
The base RasterCatalog. |
void |
setRasterCatalogTableByRef(IRasterCatalogTable ppCatalogTable)
The source raster catalog table. |
void |
setResampleMethod(int val)
Interpolation method used when reading pixels. |
void |
setSpatialReference(ISpatialReference ppSpref)
SpatialReference of the Raster. |
void |
setWhereClause(String whereClause)
The Where Clause on the base RasterCatalog. |
void |
setWidth(int pVal)
Width in pixels. |
| 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 MosaicRaster()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public MosaicRaster(Object obj)
throws IOException
MosaicRaster theMosaicRaster = (MosaicRaster) obj;
obj to MosaicRaster.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public IRasterCatalog getRasterCatalog()
throws IOException,
AutomationException
getRasterCatalog in interface IMosaicRasterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setRasterCatalogByRef(IRasterCatalog ppCatalog)
throws IOException,
AutomationException
setRasterCatalogByRef in interface IMosaicRasterppCatalog - A reference to a com.esri.arcgis.geodatabase.IRasterCatalog (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getWhereClause()
throws IOException,
AutomationException
getWhereClause in interface IMosaicRasterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setWhereClause(String whereClause)
throws IOException,
AutomationException
setWhereClause in interface IMosaicRasterwhereClause - The whereClause (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getOrderByField()
throws IOException,
AutomationException
getOrderByField in interface IMosaicRasterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setOrderByField(String orderByField)
throws IOException,
AutomationException
setOrderByField in interface IMosaicRasterorderByField - The orderByField (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isAscending()
throws IOException,
AutomationException
isAscending in interface IMosaicRasterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAscending(boolean ascending)
throws IOException,
AutomationException
setAscending in interface IMosaicRasterascending - The ascending (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getMosaicOperatorType()
throws IOException,
AutomationException
getMosaicOperatorType in interface IMosaicRasterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMosaicOperatorType(int type)
throws IOException,
AutomationException
setMosaicOperatorType in interface IMosaicRastertype - A com.esri.arcgis.datasourcesraster.rstMosaicOperatorType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IMosaicOperator getMosaicOperator()
throws IOException,
AutomationException
getMosaicOperator in interface IMosaicRasterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMosaicOperatorByRef(IMosaicOperator op)
throws IOException,
AutomationException
setMosaicOperatorByRef in interface IMosaicRasterop - A reference to a com.esri.arcgis.datasourcesraster.IMosaicOperator (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getMosaicColormapMode()
throws IOException,
AutomationException
getMosaicColormapMode in interface IMosaicRasterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMosaicColormapMode(int mode)
throws IOException,
AutomationException
It is only applicable to ArcSDE rasters.
setMosaicColormapMode in interface IMosaicRastermode - A com.esri.arcgis.datasourcesraster.rstMosaicColormapMode constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IRasterColormap getColormap()
throws IOException,
AutomationException
getColormap in interface IMosaicRasterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setColormap(IRasterColormap ppColormap)
throws IOException,
AutomationException
setColormap in interface IMosaicRasterppColormap - 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 IRasterCatalogTable getRasterCatalogTable()
throws IOException,
AutomationException
getRasterCatalogTable in interface IMosaicRaster2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setRasterCatalogTableByRef(IRasterCatalogTable ppCatalogTable)
throws IOException,
AutomationException
setRasterCatalogTableByRef in interface IMosaicRaster2ppCatalogTable - A reference to a com.esri.arcgis.datasourcesraster.IRasterCatalogTable (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void recalculateCellsize(int type)
throws IOException,
AutomationException
recalculateCellsize in interface IMosaicRaster2type - A com.esri.arcgis.datasourcesraster.esriCellsizeType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getRasterCount()
throws IOException,
AutomationException
getRasterCount in interface IRasterCollectionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void insert(int index,
IRaster pRaster)
throws IOException,
AutomationException
insert in interface IRasterCollectionindex - The index (in)pRaster - A reference to a com.esri.arcgis.geodatabase.IRaster (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void append(IRaster pRaster)
throws IOException,
AutomationException
append in interface IRasterCollectionpRaster - A reference to a com.esri.arcgis.geodatabase.IRaster (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void remove(int index)
throws IOException,
AutomationException
remove in interface IRasterCollectionindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int find(IRaster pRaster)
throws IOException,
AutomationException
find in interface IRasterCollectionpRaster - A reference to a com.esri.arcgis.geodatabase.IRaster (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IRaster get(int index)
throws IOException,
AutomationException
get in interface IRasterCollectionindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void set(int index,
IRaster pRaster)
throws IOException,
AutomationException
set in interface IRasterCollectionindex - The index (in)pRaster - A reference to a com.esri.arcgis.geodatabase.IRaster (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void empty()
throws IOException,
AutomationException
empty in interface IRasterCollectionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void populate(IEnvelope pExtent)
throws IOException,
AutomationException
populate in interface IRasterCollectionpExtent - 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 read(IPnt tlc,
IPixelBlock block)
throws IOException,
AutomationException
read in interface IRastertlc - 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 IRastersize - 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 IRasterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getResampleMethod()
throws IOException,
AutomationException
getResampleMethod in interface IRasterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setResampleMethod(int val)
throws IOException,
AutomationException
setResampleMethod in interface IRasterval - A com.esri.arcgis.geodatabase.rstResamplingTypes constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getWidth()
throws IOException,
AutomationException
getWidth in interface IRasterPropsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setWidth(int pVal)
throws IOException,
AutomationException
setWidth in interface IRasterPropspVal - 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 IRasterPropsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setHeight(int pVal)
throws IOException,
AutomationException
setHeight in interface IRasterPropspVal - 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 IRasterPropsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setPixelType(int pVal)
throws IOException,
AutomationException
setPixelType in interface IRasterPropspVal - 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 IRasterPropsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setNoDataValue(Object pVal)
throws IOException,
AutomationException
setNoDataValue in interface IRasterPropspVal - 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 IRasterPropsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isInteger()
throws IOException,
AutomationException
isInteger in interface IRasterPropsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ISpatialReference getSpatialReference()
throws IOException,
AutomationException
getSpatialReference in interface IRasterPropsgetSpatialReference in interface IGeoDatasetIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSpatialReference(ISpatialReference ppSpref)
throws IOException,
AutomationException
setSpatialReference in interface IRasterPropsppSpref - 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 IRasterPropsgetExtent in interface IGeoDatasetIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setExtent(IEnvelope ppExtent)
throws IOException,
AutomationException
setExtent in interface IRasterPropsppExtent - 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 IDataset saveAs(String name,
IWorkspace workspace,
String format)
throws IOException,
AutomationException
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" |
Note, SaveAs will return a RasterDataset, to prevent from ISaveAs 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 ISaveAsname - The name (in)workspace - 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 boolean canSaveAs(String format)
throws IOException,
AutomationException
canSaveAs in interface ISaveAsformat - 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 ISaveAs2name - 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 IPixelFilter getPixelFilter()
throws IOException,
AutomationException
getPixelFilter in interface IPixelOperationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setPixelFilterByRef(IPixelFilter ppFilter)
throws IOException,
AutomationException
setPixelFilterByRef in interface IPixelOperationppFilter - 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 void interfaceSupportsErrorInfo(GUID riid)
throws IOException,
AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo in interface ISupportErrorInforiid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (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 | ||||||||