Moxi Media Inc.
<GET-FEATURE-INFO> Tree View | Discussion Forum

IMF Developer's Guide » Map Configuration » <GET-FEATURE-INFO>  

The <GET-FEATURE-INFO> element defines the communication protocols used to get data from a WMS server.

Frequency Parent Elements (this element is valid within):
POS1 <WMS-SERVICE>
   

Attributes Description
format The format of the data returned from the WMS service. The format must match one of the formats supported by the server, so check the capabilities response for valid values. Only XML responses are supported, so don't use values like "text/html" or "text/plain". Any XML response is allowed, but a parser must exist to read the response. Use use "WMS_XML" or "application/vnd.ogc.se_xml" if available. Required.
href The URL used for requesting map data. The data request arguments will be added to the value when making the requests, so only include the base URL as specified in the capabilities file. Note that if your URL contains ampersands, they must be escaped like "&amp;" in the XML. Required.
parser Since the XML GetFeatureInfo response is not defined in the WMS specification, responses from different servers are different. In order to handle the XML response from the WMS server, a parser routine must be specified. The Java class name of the SAX parsing routine is entered here. Parsing classes exist for the following WMS server types and formats:

ArcIMS 3.1 WMS Connector (ARCXML)
com.moximedia.ows.xml.GetFeatureInfoArcImsEsrimap3

ArcIMS 4.x WMS Connector (application/vnd.ogc.gml)
com.moximedia.ows.xml.GetFeatureInfoArcImsEsrimap4

WMS Interoperability for ArcIMS 4 v0.0.6 (application/vnd.ogc.gml)
com.moximedia.ows.xml.GetFeatureInfoArcImsWMSServlet006

WMS Interoperability for ArcIMS 4 v1.0.0 (application/vnd.ogc.gml)
com.moximedia.ows.xml.GetFeatureInfoWsitWMSServlet

Cubewerx (application/x-cubestor-gml.1)
com.moximedia.ows.xml.GetFeatureInfoCubestorGml1

Intergraph (text/html)
com.moximedia.ows.xml.GetFeatureInfoIntergraphTextHtml

MapServer 3.6.x (application/vnd.ogc.gml)
com.moximedia.ows.xml.GetFeatureInfoMapServer36

MapServer 3.7.x (application/vnd.ogc.gml)
com.moximedia.ows.xml.GetFeatureInfoMapServer37

MapServer 4.x (application/vnd.ogc.gml)
com.moximedia.ows.xml.GetFeatureInfoMapServer4

Support for other server types will be added by Moxi Media as they become available, or you can create your own parsing classes. Required.

   

Frequency Description (in this context)
POS1 The <GET-FEATURE-INFO> element is optional (not all WMS services support it) and may appear zero or one time in the <WMS-SERVICE> element in the specified sequence.
   

Example:

<GET-FEATURE-INFO 
 format="application/vnd.ogc.gml"
 parser="com.moximedia.ows.xml.GetFeatureInfoMapServer36"
 exception-format="application/vnd.ogc.se_xml"
 href="http://moximedia.com/cgi-bin/wms_gisi" />