com.esri.arcgis.geoanalyst
Class RasterDescriptor

java.lang.Object
  extended by com.esri.arcgis.geoanalyst.RasterDescriptor
All Implemented Interfaces:
IGeoDataDescriptor, IRasterDescriptor, IGeoDataset, com.esri.arcgis.interop.RemoteObjRef, ISupportErrorInfo, java.io.Serializable

public class RasterDescriptor
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IGeoDataset, IRasterDescriptor, ISupportErrorInfo

COM Class 'RasterDescriptor'. Generated 3/19/2015 1:20:43 PM from 'C:\ArcGIS\COM\esriGeoAnalyst.olb'

Description 'GeoAnalyst Raster descriptor object.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.geoanalyst.IRasterDescriptor
IID, IID296e7f60_d1c8_11d2_9f3c_00c04f8ed1d7, xxDummy
 
Fields inherited from interface com.esri.arcgis.geoanalyst.IGeoDataDescriptor
IID18bdbec1_c45c_11d3_9f5e_00c04f8ed1d7
 
Fields inherited from interface com.esri.arcgis.system.ISupportErrorInfo
IID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy
 
Constructor Summary
RasterDescriptor()
          Constructs a RasterDescriptor using ArcGIS Engine.
RasterDescriptor(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RasterDescriptor theRasterDescriptor = (RasterDescriptor) obj;
 
Method Summary
 void create(IRaster raster, IQueryFilter filter, java.lang.String fieldName)
          Create a Raster descriptor.
 void createFromSelectionSet(ISelectionSet selectionSet, IQueryFilter filter, java.lang.String fieldName)
          Creates a GeoDataset descriptor with a SelectionSet.
 boolean equals(java.lang.Object o)
          Compare this object with another
static java.lang.String getClsid()
          getClsid.
 IEnvelope getExtent()
          The extent of the GeoDataset.
 IField getField()
          The field of the GeoDataset descriptor.
 java.lang.String getFieldName()
          The field name of the GeoDataset descriptor.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 IQueryFilter getQueryFilter()
          The query filter of the GeoDataset descriptor.
 IRaster getRaster()
          The Raster in the descriptor.
 ISelectionSet getSelectionSet()
          The SelectionSet of the GeoDataset descriptor.
 ISpatialReference getSpatialReference()
          The spatial reference of the GeoDataset.
 int hashCode()
          the hashcode for this object
 void interfaceSupportsErrorInfo(GUID riid)
          interfaceSupportsErrorInfo
 void release()
          Release a RasterDescriptor.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RasterDescriptor

public RasterDescriptor()
                 throws java.io.IOException,
                        java.net.UnknownHostException
Constructs a RasterDescriptor using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

RasterDescriptor

public RasterDescriptor(java.lang.Object obj)
                 throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RasterDescriptor theRasterDescriptor = (RasterDescriptor) obj;

Construct a RasterDescriptor using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to RasterDescriptor.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a RasterDescriptor.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

getSpatialReference

public ISpatialReference getSpatialReference()
                                      throws java.io.IOException,
                                             AutomationException
The spatial reference of the GeoDataset.

Remarks

This property is read only. For layers, when the first layer is added to ArcMap, its spatial reference is read by this property, and the map is set to this spatial reference.

Instances of the esriCarto.GroupLayer class will return null for this property, as a group layer can contain multiple datasets with different spatial references.

Modifications to a spatial reference returned by this property will not be persisted. To modify the spatial reference of a dataset, the IGeoDatasetSchemaEdit and IGeoDatasetSchemaEdit2 interfaces should be used.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getSpatialReference in interface IGeoDataset
Returns:
A reference to a com.esri.arcgis.geometry.ISpatialReference
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getExtent

public IEnvelope getExtent()
                    throws java.io.IOException,
                           AutomationException
The extent of the GeoDataset.

Remarks

The IGeoDataset::Extent property returns an envelope representing the maximum extent of data which has been stored in the dataset.

Consider the following scenario. A new feature class has features added to it. The IGeoDataset::Extent is then requested and an envelope is returned. The extents of the envelope returned are represented by the red box in the image below.

The red box represents the IGeoDataset extent

If a portion of the features were then deleted and the extent is again requested an envelope with the exact same extents as during the first request would be returned (see image below). This is because the deletion of features does not shrink the extent. However all additions of features outside the red box would increase the envelope returned to encompass the newly added features.

The red box represents the IGeoDataset extent after some of the features have been deleted

If you would like to update the IGeoDataset::Extent property to reflect the current features in your dataset please see IFeatureClassManage::UpdateExtent (also see IFeatureClassLoad). In the image below the extent has been updated and a new envelope is being returned.

The red box represents the IGeoDataset extent after it has been updated

ESRI's GroupLayer implements this property differently from most other layer coclasses. When you instantiate a new GroupLayer, this property will return a valid envelope with zero height and width. With most other newly instantiated layers (for example FeatureLayer, RasterLayer, TinLayer), this property initally returns Nothing.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getExtent in interface IGeoDataset
Returns:
A reference to a com.esri.arcgis.geometry.IEnvelope
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

create

public void create(IRaster raster,
                   IQueryFilter filter,
                   java.lang.String fieldName)
            throws java.io.IOException,
                   AutomationException
Create a Raster descriptor.

Specified by:
create in interface IRasterDescriptor
Parameters:
raster - A reference to a com.esri.arcgis.geodatabase.IRaster (in)
filter - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)
fieldName - The fieldName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getRaster

public IRaster getRaster()
                  throws java.io.IOException,
                         AutomationException
The Raster in the descriptor.

Specified by:
getRaster in interface IRasterDescriptor
Returns:
A reference to a com.esri.arcgis.geodatabase.IRaster
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createFromSelectionSet

public void createFromSelectionSet(ISelectionSet selectionSet,
                                   IQueryFilter filter,
                                   java.lang.String fieldName)
                            throws java.io.IOException,
                                   AutomationException
Creates a GeoDataset descriptor with a SelectionSet.

Specified by:
createFromSelectionSet in interface IGeoDataDescriptor
Parameters:
selectionSet - A reference to a com.esri.arcgis.geodatabase.ISelectionSet (in)
filter - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)
fieldName - The fieldName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getQueryFilter

public IQueryFilter getQueryFilter()
                            throws java.io.IOException,
                                   AutomationException
The query filter of the GeoDataset descriptor.

Specified by:
getQueryFilter in interface IGeoDataDescriptor
Returns:
A reference to a com.esri.arcgis.geodatabase.IQueryFilter
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSelectionSet

public ISelectionSet getSelectionSet()
                              throws java.io.IOException,
                                     AutomationException
The SelectionSet of the GeoDataset descriptor.

Specified by:
getSelectionSet in interface IGeoDataDescriptor
Returns:
A reference to a com.esri.arcgis.geodatabase.ISelectionSet
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getField

public IField getField()
                throws java.io.IOException,
                       AutomationException
The field of the GeoDataset descriptor.

Specified by:
getField in interface IGeoDataDescriptor
Returns:
A reference to a com.esri.arcgis.geodatabase.IField
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFieldName

public java.lang.String getFieldName()
                              throws java.io.IOException,
                                     AutomationException
The field name of the GeoDataset descriptor.

Specified by:
getFieldName in interface IGeoDataDescriptor
Returns:
The fieldName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws java.io.IOException,
                                       AutomationException
interfaceSupportsErrorInfo

Specified by:
interfaceSupportsErrorInfo in interface ISupportErrorInfo
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.