com.esri.arcgis.carto
Interface IFeatureCache2

All Superinterfaces:
Serializable
All Known Implementing Classes:
FeatureCache

public interface IFeatureCache2
extends Serializable

Provides access to members that control a cache of features in memory for a particular spatial extent.

Product Availability

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


Method Summary
 void addFeatures(IFeatureClass fclass, IEnvelope clip)
          Fills the cache with features from the featureclass.
 void addLayers(IEnumLayer layers, IEnvelope clip)
          Fills the cache with the features from the specified layers.
 boolean contains(IPoint point)
          Returns true if the point is contained in the cache.
 int getCount()
          The number of features in the cache.
 IFeature getFeature(int index)
          The nth feature.
 void initialize(IPoint point, double size)
          Initializes the cache with a given size and location.
 

Method Detail

addFeatures

void addFeatures(IFeatureClass fclass,
                 IEnvelope clip)
                 throws IOException,
                        AutomationException
Fills the cache with features from the featureclass. Clip envelope may be null.

Remarks

Adds the features in the specified features class to the cache. Only features that fit within the intersection of the clip envelope and the cache's internal envelope (specified during initialization) will be added.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
fclass - A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
clip - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addLayers

void addLayers(IEnumLayer layers,
               IEnvelope clip)
               throws IOException,
                      AutomationException
Fills the cache with the features from the specified layers. Clip envelope may be null.

Remarks

Adds the features in the specified layers to the cache. Only features that fit within the intersection of the clip envelope and the cache's internal envelope (specified during initialization) will be added.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
layers - A reference to a com.esri.arcgis.carto.IEnumLayer (in)
clip - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

initialize

void initialize(IPoint point,
                double size)
                throws IOException,
                       AutomationException
Initializes the cache with a given size and location.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
point - A reference to a com.esri.arcgis.geometry.IPoint (in)
size - The size (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

contains

boolean contains(IPoint point)
                 throws IOException,
                        AutomationException
Returns true if the point is contained in the cache.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
point - A reference to a com.esri.arcgis.geometry.IPoint (in)
Returns:
The contains
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCount

int getCount()
             throws IOException,
                    AutomationException
The number of features in the cache.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFeature

IFeature getFeature(int index)
                    throws IOException,
                           AutomationException
The nth feature.

Product Availability

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

Parameters:
index - The index (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IFeature
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.