Moxi Media Inc.
<SERVICES> Tree View | Discussion Forum

IMF Developer's Guide » Map Configuration » <SERVICES>  

The <SERVICES> element defines the WMS services that are used to produce the map. Multiple services can be defined. At least one <WMS-SERVICE> sub-element is required.

Note that the map configuration file elements must appear in sequence, and the <SERVICES> element must immediately follow the <MAP> element in the map configuration XML file. For best results, validate your XML against the schema for this file format.

Frequency Parent Elements (this element is valid within):
PRS1 <MAP-CONFIG>
   

Frequency Child Elements
OS+ <WFS-SERVICE>
RS+ <WMS-SERVICE>
   

Frequency Description (in this context)
PRS1 The <SERVICES> element must appear exactly once in the parent element in the sequence specified.
0S+ The <WFS-SERVICE> element may appear zero or more times within the <SERVICES> element in the specified sequence.
RS+ The <WMS-SERVICE> element must appear one or more times within the <SERVICES> element in the specified sequence.
   

Example:

<SERVICES>
   <WMS-SERVICE
    service-id="GISI"
    version="1.1.0"
    srs="EPSG:42102">
      <GET-MAP
       format="image/png"
       exception-format="application/vnd.ogc.se_blank"
       href="http://moximedia.com/cgi-bin/wms_gisi" />
      <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" /> 
   </WMS-SERVICE>
</SERVICES>