|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FeatureInfo
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:
<?xml version="1.0" encoding="UTF-8" > < FeatureInfoResponse> < FIELDS OBJECTID="22" MAP.States_v.AREA="110667.293" /> < FIELDS OBJECTID="1396" NAME="Esmeralda" /> </FeatureInfoResponse>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 |
---|
String getInfoString()
List<Map<String,String>> getFeatureInfo()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |