public class

IdentifyResult

extends Object
implements Serializable
java.lang.Object
   ↳ com.esri.core.tasks.ags.identify.IdentifyResult

Class Overview

When the IdentifyTask class performs the identify operation and receives the result for an ArcGIS Server instance, it will only partially decode the results returned. It is the IdentifyResult class that will fully decode the results to make them usable in your application code.
Each feature that is identified will take one position in the array (2 features will be found in positions [0] and [1] of the array returned).

For each feature that is returned in the result, you will be able to obtain the following information:

  • the layer ID of the layer that contains the feature that was identified
  • the layer name of the layer that contains the feature that was identified
  • a display field (also called an attribute) name for the identified feature
  • a value for the display field of the identified feature
  • a HashMap of pairs for the identified feature

  • When working with the ArcGIS API for Android, you should never have the need to instantiate this class. It will always be an object that is returned back to you and you will work with the various methods to obtain the information as needed by your application.

    Summary

    Public Methods
    boolean equals(Object obj)
    Map<StringObject> getAttributes()
    Returns the map of attributes for the identified feature.
    String getDisplayFieldName()
    Returns the display field (also called an attribute) name for the identified feature.
    Geometry getGeometry()
    Returns the geometry of the identified feature.
    int getLayerId()
    Returns the layer ID of the layer that contains the identified feature.
    String getLayerName()
    Returns the layer Name of the layer that contains the identified feature.
    Object getValue()
    Returns the value of the display field name for the identified feature.
    int hashCode()
    [Expand]
    Inherited Methods
    From class java.lang.Object

    Public Methods

    public boolean equals (Object obj)

    public Map<StringObject> getAttributes ()

    Returns the map of attributes for the identified feature.

    Returns
    • the map of attributes for the identified feature.

    public String getDisplayFieldName ()

    Returns the display field (also called an attribute) name for the identified feature.

    Returns
    • the display field name for the identified feature.

    public Geometry getGeometry ()

    Returns the geometry of the identified feature.

    Returns
    • the geometry of the identified feature.

    public int getLayerId ()

    Returns the layer ID of the layer that contains the identified feature.

    Returns
    • the layer ID of the layer that contains the identified feature.

    public String getLayerName ()

    Returns the layer Name of the layer that contains the identified feature.

    Returns
    • the layer Name of the layer that contains the identified feature.

    public Object getValue ()

    Returns the value of the display field name for the identified feature.

    Returns
    • the value of the display field name for the identified feature.

    public int hashCode ()