|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFeatureIndex2
Provides access to members that control the creation of an index on a feature class.
Used on FeatureIndex object to build a spatial index for a group of features. Corresponding methods on IIndexQuery can then access this infomation.
It is important to set the OutputSpatialReference if the FeatureClass being passed in has a different spatial reference than that of the input shape on the IIndexQuery methods
Method Summary | |
---|---|
ISpatialReference |
getOutputSpatialReference(String fieldName)
The spatial reference in which to output geometry for a given field. |
void |
index(ITrackCancel pTrackCancel,
IEnvelope pQueryingGeometryFullExtent)
Creates index. |
void |
setFeatureClassByRef(IFeatureClass rhs1)
FeatureClass to index. |
void |
setFeatureCursorByRef(IFeatureCursor rhs1)
Cursor on feature class, to reduce the number of feature indexed (optional). |
void |
setOutputSpatialReferenceByRef(String fieldName,
ISpatialReference outputSpatialReference)
The spatial reference in which to output geometry for a given field. |
Method Detail |
---|
void setFeatureClassByRef(IFeatureClass rhs1) throws IOException, AutomationException
The feature class to index
rhs1
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setFeatureCursorByRef(IFeatureCursor rhs1) throws IOException, AutomationException
A cusror that may contain a subset of the features that are in the FeatureClass to index. This will increase performance by minimizing the size of the spatial index. It is still necessary to set IFeatureIndex2.FeatureClass.
rhs1
- A reference to a com.esri.arcgis.geodatabase.IFeatureCursor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void index(ITrackCancel pTrackCancel, IEnvelope pQueryingGeometryFullExtent) throws IOException, AutomationException
Actuallly queries the database for the features in the FeatureClass (or optionally the FeatureCursor) and creates a spatial index in memory of the resulting features.
pTrackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)pQueryingGeometryFullExtent
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISpatialReference getOutputSpatialReference(String fieldName) throws IOException, AutomationException
fieldName
- The fieldName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setOutputSpatialReferenceByRef(String fieldName, ISpatialReference outputSpatialReference) throws IOException, AutomationException
Sets the current Output SpatialReference. It is important that this is set to the same SpatialReference as the input Shape's SpatialReference used as input in the IIndexQuery methods.
fieldName
- The fieldName (in)outputSpatialReference
- A reference to a com.esri.arcgis.geometry.ISpatialReference (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 |