[[PageOutline]] = Overriding WMS Provider settings for !MapGuide Open Source Consumption = '''If you wish, you can also download a [/fdo/attachment/wiki/FdoWmsNotes/ConfiguringAWMSFeatureSource.pdf?format=raw PDF version of this document].''' Configuration of feature sources within !MapGuide Open Source is generally done using one of the open source (such as Web Studio or [http://trac.osgeo.org/mapguide/wiki/maestro MapGuide Maestro]) or proprietary (Autodesk !MapGuide Studio) GUI's. Unfortunately, these applications currently do not provide a simple interface for overriding the configuration of WMS feature sources. Examples of these configuration options include: * Image transparency * Image format (png, jpeg, gif, etc) * Image background color * Coordinate system * Displaying of multiple WMS layers in a single !MapGuide layer This document describes how to manually create a new FDO WMS configuration file, and load it for use in !MapGuide = Configuration Document = This section describes how to create the configuration document for the !MapGuide WMS feature source. == Get the Capabilities Document == Before anything can be done, you should get the WMS capabilities document for the service you want to interact with. This XML document contains the details of the services provided by the WMS service, such as coordinate systems, image formats, layers, and styles. To do obtain this file, start a web browser and go to the location !http://?service=wms&request=!GetCapabilities == Basic Configuration Document == This section describes a basic configuration document that configures and exposes a single WMS layer. Copy the following XML to a text editor. {{{ PNG true 0xFFFFFF 0 EPSG:4326 could be added. Once the substitutions have been made save the file. == Multiple WMS Layers in a Single !MapGuide Layer == To get multiple WMS layers in a single !MapGuide layer, it is enough to specify multiple Layer tags in the configuration document. When the resulting feature class (i.e., name substituted for %!FeatureClassName%) is specified in a layer, the layer will display all of the specified WMS layers. The following XML snippet shows how the multiple layers are specified: {{{ PNG true 0xFFFFFF 0 EPSG:4326