WMS (Web Map Service)¶
WMS (Web Map Service) is an Open Geospatial Consortium (OGC) standard protocol for serving raster images over the web. WMS is the most popular format you will encounter when accessing governmental or other public web data repositories. The images are usually backed by a GIS database and generated on demand, though the server may also be configured to serve pre-tiled data.
There are many options for WMS access, and many versions of WMS, and osgEarth only supports a small subset as described below.
CLASS: WMSImageLayer (inherits from ImageLayer)
|url||Location of the WMS service||URI|
|format||Image format to generate, usually at a mime-type. Commonly supported formats include
|transparent||Hint as to whether the server should create imagery with a transparency channel (alpha). This requires the use of a
|capabilities_url||Optionally specificy the URL osgEarth should use to request server capabilities. Usually this is devined automatically and you do not need to set it.||URI|
|wms_version||Expressly request a WMS version string from the server; usually you do not need this, but sometimes a WMS server requires it.||string||1.0.0|
<WMSImage name="Weather RADAR"> <url>http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi</url> <format>png</format> <layers>nexrad-n0r</layers> <srs>EPSG:4326</srs> <transparent>true</transparent> </WMSImage>