com.esri.arcgis.geoanalyst
Class FeatureClassDescriptor

java.lang.Object
  extended bycom.esri.arcgis.geoanalyst.FeatureClassDescriptor
All Implemented Interfaces:
IFeatureClassDescriptor, IGeoDataDescriptor, IGeoDataset, ISupportErrorInfo, java.io.Serializable

public class FeatureClassDescriptor
extends java.lang.Object
implements IGeoDataset, IFeatureClassDescriptor, ISupportErrorInfo

GeoAnalyst FeatureClass descriptor object.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
FeatureClassDescriptor()
          Constructs a FeatureClassDescriptor using ArcGIS Engine.
FeatureClassDescriptor(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
 
Method Summary
 void create(IFeatureClass featureClass, IQueryFilter filter, java.lang.String fieldName)
          Creates a FeatureClass 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
 IFeatureClassDescriptor getAsIFeatureClassDescriptor()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 IGeoDataset getAsIGeoDataset()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 ISupportErrorInfo getAsISupportErrorInfo()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
static java.lang.String getClsid()
           
 IEnvelope getExtent()
          The extent of the GeoDataset.
 IFeatureClass getFeatureClass()
          The FeatureClass in the descriptor.
 IField getField()
          The field of the GeoDataset descriptor.
 java.lang.String getFieldName()
          The field name of the GeoDataset descriptor.
 IQueryFilter getQueryFilter()
          The query filter of the GeoDataset 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)
          Supported Platforms
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureClassDescriptor

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

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

FeatureClassDescriptor

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

Construct a FeatureClassDescriptor using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to FeatureClassDescriptor.
FeatureClassDescriptor theFeatureClassDescriptor = (FeatureClassDescriptor) obj;

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()

getAsIGeoDataset

public IGeoDataset getAsIGeoDataset()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsIFeatureClassDescriptor

public IFeatureClassDescriptor getAsIFeatureClassDescriptor()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsISupportErrorInfo

public ISupportErrorInfo getAsISupportErrorInfo()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


equals

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


hashCode

public int hashCode()
the hashcode for this object


getSpatialReference

public ISpatialReference getSpatialReference()
                                      throws java.io.IOException,
                                             AutomationException
Description copied from interface: IGeoDataset
The spatial reference of the GeoDataset.

Supported Platforms

Windows, Solaris, Linux

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.

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
Description copied from interface: IGeoDataset
The extent of the GeoDataset.

Supported Platforms

Windows, Solaris, Linux

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.

 

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

create

public void create(IFeatureClass featureClass,
                   IQueryFilter filter,
                   java.lang.String fieldName)
            throws java.io.IOException,
                   AutomationException
Description copied from interface: IFeatureClassDescriptor
Creates a FeatureClass descriptor.

Supported Platforms

Windows, Solaris, Linux

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

getFeatureClass

public IFeatureClass getFeatureClass()
                              throws java.io.IOException,
                                     AutomationException
Description copied from interface: IFeatureClassDescriptor
The FeatureClass in the descriptor.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getFeatureClass in interface IFeatureClassDescriptor
Returns:
A reference to a com.esri.arcgis.geodatabase.IFeatureClass
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
Description copied from interface: IGeoDataDescriptor
Creates a GeoDataset descriptor with a SelectionSet.

Supported Platforms

Windows, Solaris, Linux

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:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getQueryFilter

public IQueryFilter getQueryFilter()
                            throws java.io.IOException,
                                   AutomationException
Description copied from interface: IGeoDataDescriptor
The query filter of the GeoDataset descriptor.

Supported Platforms

Windows, Solaris, Linux

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

getSelectionSet

public ISelectionSet getSelectionSet()
                              throws java.io.IOException,
                                     AutomationException
Description copied from interface: IGeoDataDescriptor
The SelectionSet of the GeoDataset descriptor.

Supported Platforms

Windows, Solaris, Linux

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

getField

public IField getField()
                throws java.io.IOException,
                       AutomationException
Description copied from interface: IGeoDataDescriptor
The field of the GeoDataset descriptor.

Supported Platforms

Windows, Solaris, Linux

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

getFieldName

public java.lang.String getFieldName()
                              throws java.io.IOException,
                                     AutomationException
Description copied from interface: IGeoDataDescriptor
The field name of the GeoDataset descriptor.

Supported Platforms

Windows, Solaris, Linux

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
Description copied from interface: ISupportErrorInfo

Supported Platforms

Windows, Solaris, Linux

Description

Indicates whether the interface supports IErrorInfo.

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