|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 FormConstructor 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 |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
IEnvelope |
getExtent()
The extent of the raster value. |
IGeodataXform |
getPersistXform()
The geodata transformation to be persisted. |
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. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
hashCode()
the hashcode for this object |
void |
isDirty()
isDirty |
void |
load(IStream pstm)
load |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
void |
setEmptyRasterDataset(int nBands,
int pixelType)
Sets up the empty raster dataset. |
void |
setExtentByRef(IEnvelope extent)
The extent of the raster value. |
void |
setPersistXformByRef(IGeodataXform xform)
The geodata transformation to be persisted. |
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. |
void |
writeExternal(ObjectOutput out)
|
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 problemspublic 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 problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public IRasterStorageDef getRasterStorageDef() throws IOException, AutomationException
getRasterStorageDef
in interface IRasterValue
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setRasterStorageDefByRef(IRasterStorageDef storageDef) throws IOException, AutomationException
setRasterStorageDefByRef
in interface IRasterValue
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 IEnvelope getExtent() throws IOException, AutomationException
getExtent
in interface IRasterValue
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setExtentByRef(IEnvelope extent) throws IOException, AutomationException
setExtentByRef
in interface IRasterValue
extent
- 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 IRasterDataset getRasterDataset() throws IOException, AutomationException
getRasterDataset
in interface IRasterValue
IOException
- 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 IRasterValue
dataset
- 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 IRasterValue
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setRasterDatasetNameByRef(IName datasetName) throws IOException, AutomationException
setRasterDatasetNameByRef
in interface IRasterValue
datasetName
- 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 IRasterValue
IOException
- 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 IRasterValue
raster
- 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 IRasterValue
nBands
- 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.public IGeodataXform getPersistXform() throws IOException, AutomationException
getPersistXform
in interface IRasterValue2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setPersistXformByRef(IGeodataXform xform) throws IOException, AutomationException
setPersistXformByRef
in interface IRasterValue2
xform
- 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 isDirty() throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty
in interface IPersistStream
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void load(IStream pstm) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void save(IStream pstm, int fClearDirty) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)fClearDirty
- The fClearDirty (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getSizeMax(_ULARGE_INTEGER[] pcbSize) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax
in interface IPersistStream
pcbSize
- A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getClassID(GUID[] pClassID) throws IOException, AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID
in interface IPersist
pClassID
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |