com.esri.arcgis.carto
Interface IFeatureCache

All Superinterfaces:
Serializable
All Known Implementing Classes:
FeatureCache

public interface IFeatureCache
extends Serializable

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

Superseded By

IFeatureCache2

Product Availability

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

Supported Platforms

Windows, Solaris, Linux


Method Summary
 void addFeatures(IFeatureClass fclass)
          Fills the cache with features from the featureclass.
 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

initialize

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

Remarks

This method initializes the cache using an envelope created from the point by expanding it in height and width according to the specified size value. Size should be in the same units as the point.

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.

addFeatures

void addFeatures(IFeatureClass fclass)
                 throws IOException,
                        AutomationException
Fills the cache with features from the featureclass. All previously loaded features in the cache are removed.

Remarks

Adds the features in the specified features class that fit within the envelope the cache was initialized with to the cache.

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