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)
|Location of the WMS service
|Image format to generate, usually at a mime-type. Commonly supported formats include
png (some WMS servers expect the
mime-type format like
LAYERS option (see specification) and requests the data be generated from a given layer or comma-separated collection of layers
SRS option (see specification) as exposed in the capabilities response, and refers to the spatial reference system of the image to generate
|Hint as to whether the server should create imagery with a transparency channel (alpha). This requires the use of a
format that supports alpha (like
CRS option (see specification) as used by later WMS versions as a refinement of the old
STYLES option (see specification) to request from the server
|Optionally specificy the URL osgEarth should use to request server capabilities. Usually this is devined automatically and you do not need to set it.
|Expressly request a WMS version string from the server; usually you do not need this, but sometimes a WMS server requires it.
<WMSImage name="Weather RADAR">