public interface

Feature

com.esri.core.map.Feature
Known Indirect Subclasses

Class Overview

Interface for an object you can add to a map. Typically a feature represents some real-world geographical object such as a road, a house, a lake, and so on. A feature has a unique ID, and may also have a geometry, spatial reference, and an attribute map of key-value pairs holding properties about the feature.

Summary

Public Methods
abstract Object getAttributeValue(String fieldName)
Gets the feature's attribute value for the specified field name.
abstract Map<String, Object> getAttributes()
Returns the attributes of the feature as a map of key-value pairs.
abstract Geometry getGeometry()
Gets the geometry of the feature.
abstract long getId()
Gets the unique ID of the feature.
abstract SpatialReference getSpatialReference()
Gets the spatial reference of the feature.
abstract Symbol getSymbol()
Gets the symbol of the feature.

Public Methods

public abstract Object getAttributeValue (String fieldName)

Gets the feature's attribute value for the specified field name.

Parameters
fieldName String: the field name
Returns
Object the attribute value

public abstract Map<String, Object> getAttributes ()

Returns the attributes of the feature as a map of key-value pairs.

Returns
Map<String, Object> the attributes

public abstract Geometry getGeometry ()

Gets the geometry of the feature.

Returns
Geometry the feature's geometry

public abstract long getId ()

Gets the unique ID of the feature.

Returns
long the feature's ID

public abstract SpatialReference getSpatialReference ()

Gets the spatial reference of the feature.

Returns
SpatialReference the spatial reference

public abstract Symbol getSymbol ()

Gets the symbol of the feature.

Returns
Symbol the feature's symbol