com.esri.arcgis.carto
Interface IMapServerData

All Superinterfaces:
Serializable
All Known Implementing Classes:
MapServer

public interface IMapServerData
extends Serializable

Provides access to map features and their values.

When To Use

Use IMapServerData to retrieve a specified feature or the field value for a specified feature.

This interface is not supported by optimized MapServer.

Product Availability

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


Method Summary
 IFeature getFeature(String mapName, int layerID, int featureId)
          Returns a feature, given the feature ID and layer.
 String getFeatureValue(String mapName, int layerID, IFeature feature, String fieldName)
          Returns the value of a given feature as a string.
 

Method Detail

getFeatureValue

String getFeatureValue(String mapName,
                       int layerID,
                       IFeature feature,
                       String fieldName)
                       throws IOException,
                              AutomationException
Returns the value of a given feature as a string.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

getFeature

IFeature getFeature(String mapName,
                    int layerID,
                    int featureId)
                    throws IOException,
                           AutomationException
Returns a feature, given the feature ID and layer.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
mapName - The mapName (in)
layerID - The layerID (in)
featureId - The featureId (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.