Web Mapping Service (WMS)

The WMS driver provides access to a  OGC WMS (Web Mapping Service) data source.

Specs

  • Profile: Derived from the srs option (see Options below). Defaults to global-geodetic if no srs is specified.

Options

url Base URL to the WMS service required
layers List of layers to use from the WMS service (comma-separated) required
format Image format to request from the WMS service. Defaults to png required
tile_size Tile size, in pixels, to request from the WMS service. Defaults to 256. Tiles are square. optional
elevation_unit (heightfield only) The elevation unit of the data at the WMS service. Can be either m or ft. Defaults to m. optional
srs Spatial reference system to request from the WMS service. This is currently expected to be an EPSG code. Defaults to EPSG:4326. optional
style Style to use from the WMS service. optional

Example

<image name="vmap0" driver="wms">
  <url>http://labs.metacarta.com/wms-c/Basic.py</url>
  <layers>basic</layers>
  <format>png</format>
  <tile_size>256</tile_size>
  <srs>EPSG:4326</srs>
</image>

Driver list