|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geoanalyst.FeatureClassDescriptor
public class FeatureClassDescriptor
GeoAnalyst FeatureClass descriptor object.
Constructor Summary | |
---|---|
FeatureClassDescriptor()
Constructs a FeatureClassDescriptor using ArcGIS Engine. |
|
FeatureClassDescriptor(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. FeatureClassDescriptor theFeatureClassDescriptor = (FeatureClassDescriptor) obj; |
Method Summary | |
---|---|
void |
create(IFeatureClass featureClass,
IQueryFilter filter,
String fieldName)
Creates a FeatureClass descriptor. |
void |
createFromSelectionSet(ISelectionSet selectionSet,
IQueryFilter filter,
String fieldName)
Creates a GeoDataset descriptor with a SelectionSet. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
IEnvelope |
getExtent()
The extent of the GeoDataset. |
IFeatureClass |
getFeatureClass()
The FeatureClass in the descriptor. |
IField |
getField()
The field of the GeoDataset descriptor. |
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)
interfaceSupportsErrorInfo |
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 FeatureClassDescriptor() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic FeatureClassDescriptor(Object obj) throws IOException
FeatureClassDescriptor theFeatureClassDescriptor = (FeatureClassDescriptor) obj;
obj
to FeatureClassDescriptor
.
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 ISpatialReference getSpatialReference() throws IOException, AutomationException
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.
getSpatialReference
in interface IGeoDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope getExtent() throws IOException, AutomationException
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.
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.
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.
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.
getExtent
in interface IGeoDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void create(IFeatureClass featureClass, IQueryFilter filter, String fieldName) throws IOException, AutomationException
create
in interface IFeatureClassDescriptor
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFeatureClass getFeatureClass() throws IOException, AutomationException
getFeatureClass
in interface IFeatureClassDescriptor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void createFromSelectionSet(ISelectionSet selectionSet, IQueryFilter filter, String fieldName) throws IOException, AutomationException
createFromSelectionSet
in interface IGeoDataDescriptor
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IQueryFilter getQueryFilter() throws IOException, AutomationException
getQueryFilter
in interface IGeoDataDescriptor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISelectionSet getSelectionSet() throws IOException, AutomationException
getSelectionSet
in interface IGeoDataDescriptor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IField getField() throws IOException, AutomationException
getField
in interface IGeoDataDescriptor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getFieldName() throws IOException, AutomationException
getFieldName
in interface IGeoDataDescriptor
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 ISupportErrorInfo
riid
- 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 |