com.esri.wms.client
Interface FeatureInfo

All Superinterfaces:
Serializable
All Known Subinterfaces:
FeatureInfo2

public interface FeatureInfo
extends Serializable

Defines the response of the GetFeatureInfo operation. WMS doesn't specify the format of GetFeatureInfo response. The interface provides a generic way to handle all response formats.


  FeatureInfo info = map.query(p, map.getQueryableLayers(), 1,null);
  for(Properties pp:info.getFeatureInfo()){
  ...
  }
 
If the response is in a supported format, the getFeatureInfo will be a Properties array. For the following response:
 &LT?xml version="1.0" encoding="UTF-8" &GT
 &LT FeatureInfoResponse&GT
 &LT FIELDS OBJECTID="22" MAP.States_v.AREA="110667.293" /&GT
 &LT FIELDS OBJECTID="1396" NAME="Esmeralda" /&GT
 &LT/FeatureInfoResponse&GT
 
Two Properties will be returned:
 {OBJECTID=22, MAP.States_v.AREA=110667.293}
 {OBJECTID=1396, NAME=Esmeralda}
 
If the response is in an unsupported format, the whole response will be returned as a property (the key name is "GetFeatureInfo").


Method Summary
 List<Map<String,String>> getFeatureInfo()
          Converts the response to a Properties array.
 String getInfoString()
          Gets the original response string.
 

Method Detail

getInfoString

String getInfoString()
Gets the original response string.

Returns:
the response string.

getFeatureInfo

List<Map<String,String>> getFeatureInfo()
Converts the response to a Properties array.