|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.geodatabase.RasterValue
public class RasterValue
The Raster Value Class.
The RasterValue represents the value of a Raster field, similar to the value of a Geometry field. A RasterValue consists a RasterDataset and its storage properties specified by RasterStorageDef, including tile size, pyramid definition, compression, cellsize and origin. A RasterVaue in an ArcSDE geodatabase consists of a database RasterDataset, while a RasterValue in a personal geodatabase consists a file based RasterDataset.
The RasterValue object is used to set or update a Raster field with a given Raser, RasterDataset or RasterDatasetName. It works the same way for Personal, File and ArcSDE geodatabases, except for a RasterValue stored in a Personal geodatabase since most of the storage properties (tilesize, compression options and pyramids options) are ignored.
IRasterCatalogItem,
RasterCatalog,
RasterStorageDef,
Serialized Form| Constructor Summary | |
|---|---|
RasterValue()
Constructs a RasterValue using ArcGIS Engine. |
|
RasterValue(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. RasterValue theRasterValue = (RasterValue) obj; |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
IEnvelope |
getExtent()
The extent of the raster value. |
IRaster |
getRaster()
The raster of the raster value. |
IRasterDataset |
getRasterDataset()
The raster dataset of the raster value. |
IName |
getRasterDatasetName()
The raster dataset name of the raster value. |
IRasterStorageDef |
getRasterStorageDef()
The raster storage properties. |
int |
hashCode()
the hashcode for this object |
void |
setEmptyRasterDataset(int nBands,
int pixelType)
Sets up the empty raster dataset. |
void |
setRasterByRef(IRaster raster)
The raster of the raster value. |
void |
setRasterDatasetByRef(IRasterDataset dataset)
The raster dataset of the raster value. |
void |
setRasterDatasetNameByRef(IName datasetName)
The raster dataset name of the raster value. |
void |
setRasterStorageDefByRef(IRasterStorageDef storageDef)
The raster storage properties. |
| 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 RasterValue()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public RasterValue(Object obj)
throws IOException
RasterValue theRasterValue = (RasterValue) obj;
obj to RasterValue.
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 IRasterStorageDef getRasterStorageDef()
throws IOException,
AutomationException
getRasterStorageDef in interface IRasterValueIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setRasterStorageDefByRef(IRasterStorageDef storageDef)
throws IOException,
AutomationException
setRasterStorageDefByRef in interface IRasterValuestorageDef - 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 IEnvelope getExtent()
throws IOException,
AutomationException
getExtent in interface IRasterValueIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IRasterDataset getRasterDataset()
throws IOException,
AutomationException
getRasterDataset in interface IRasterValueIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setRasterDatasetByRef(IRasterDataset dataset)
throws IOException,
AutomationException
Assigns a RasterDataset to the RasterValue, if the raster has a different spatial reference from the raster column of the raster catalog, the raster spatial reference is ignored and the raster column spatial reference is applied to the raster, but no projection or transformation is performed. To set the raster dataset spatial reference correctly, you need to get the raster datasets and alter its xform.
setRasterDatasetByRef in interface IRasterValuedataset - A reference to a com.esri.arcgis.geodatabase.IRasterDataset (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IName getRasterDatasetName()
throws IOException,
AutomationException
getRasterDatasetName in interface IRasterValueIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setRasterDatasetNameByRef(IName datasetName)
throws IOException,
AutomationException
setRasterDatasetNameByRef in interface IRasterValuedatasetName - A reference to a com.esri.arcgis.system.IName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IRaster getRaster()
throws IOException,
AutomationException
getRaster in interface IRasterValueIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setRasterByRef(IRaster raster)
throws IOException,
AutomationException
Assigns a Raster to the RasterValue, if the raster has a different spatial reference from the raster column of the raster catalog, the raster spatial reference is ignored and the raster column spatial reference is applied to the raster, but no projection or transformation is performed. To set the raster spatial reference correctly, you need to get the raster and alter its xform.
setRasterByRef in interface IRasterValueraster - 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 setEmptyRasterDataset(int nBands,
int pixelType)
throws IOException,
AutomationException
setEmptyRasterDataset in interface IRasterValuenBands - The nBands (in)pixelType - A com.esri.arcgis.geodatabase.rstPixelType 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 | ||||||||