Below are some examples to explain services usage by using HTTP/GET and KVP encoding.

Special WMS GetMap Requests
Request / Description Result
GetMap and Styles

Four examples of a simple GetMap request, using the same LAYERS information but different STYLES:

^ up
WMS 1.1.1 GetMap Counties (default style)

Layer Counties using the default style

HTTP KVP request:

...services?
REQUEST=GetMap
SERVICE=WMS
VERSION=1.1.1
WIDTH=500
HEIGHT=500
LAYERS=Counties
TRANSPARENT=TRUE
FORMAT=image/png
BBOX=210625.44883700498,4175983.9939139457, 697811.8183418702,4663170.363418811
SRS=EPSG:26912
STYLES=

WMS 1.1.1 GetMap Colourful Counties

Layer Counties using the colourful style

HTTP KVP request:

...services?
REQUEST=GetMap
SERVICE=WMS
VERSION=1.1.1
WIDTH=500
HEIGHT=500
LAYERS=Counties
STYLES=ColourfulCounties

TRANSPARENT=TRUE
FORMAT=image/png
BBOX=210625.44883700498,4175983.9939139457, 697811.8183418702,4663170.363418811
SRS=EPSG:26912

WMS 1.1.1 GetMap Grey Counties large BoundingBox

Layer Counties using a grey style with a large bounding box

HTTP KVP request:

...services?
REQUEST=GetMap
SERVICE=WMS
VERSION=1.1.1
WIDTH=500
HEIGHT=500
LAYERS=Counties
STYLES=GreyCounties

TRANSPARENT=TRUE
FORMAT=image/png
BBOX=210625.44883700498,4175983.9939139457, 697811.8183418702,4663170.363418811
SRS=EPSG:26912

WMS 1.1.1 GetMap Grey Counties small BoundingBox

Layer Counties using a grey style with a smaller bounding box and scale dependent labeling

HTTP KVP request:

...services?
REQUEST=GetMap
SERVICE=WMS
VERSION=1.1.1
WIDTH=500
HEIGHT=500
LAYERS=Counties
STYLES=GreyCounties

TRANSPARENT=TRUE
FORMAT=image/png
BBOX=200617.8008048307,4108598.501136663, 717074.4769238816,4625055.177255713
SRS=EPSG:26912

WMS 1.1.1 GetMap State Boundaries with Roads

Layers StateBoundaries and Roads with styles in just one request

HTTP KVP request:

...services?
REQUEST=GetMap
SERVICE=WMS
VERSION=1.1.1
WIDTH=500
HEIGHT=500
LAYERS=StateOverview,Roads
STYLES=default,default

TRANSPARENT=TRUE
FORMAT=image/png
BBOX=210625.44883700498,4175983.9939139457, 697811.8183418702,4663170.363418811
SRS=EPSG:26912

GetMap and Exceptions

GetMap requests demonstrating the different kinds of exception formats by using a faulty style name

^ up
WMS 1.1.1 GetMap demonstrating Exceptions format application/application/vnd.ogc.se_xml

application/application/vnd.ogc.se_xml

...services?
REQUEST=GetMap
SERVICE=WMS
VERSION=1.1.1
EXCEPTIONS=application/vnd.ogc.se_xml
WIDTH=742
HEIGHT=667
LAYERS=StateOverview
TRANSPARENT=TRUE
FORMAT=image/png
BBOX=60820.47151152167,4027931.6904921234, 836022.1595806566,4724777.412786076
SRS=EPSG:26912
STYLES=stail

 
WMS 1.1.1 GetMap demonstrating Exceptions format application/vnd.ogc.se_inimage

application/vnd.ogc.se_inimage

...services?
REQUEST=GetMap
SERVICE=WMS
VERSION=1.1.1
EXCEPTIONS=application/vnd.ogc.se_inimage
WIDTH=742
HEIGHT=667
LAYERS=StateOverview
TRANSPARENT=TRUE
FORMAT=image/png
BBOX=60820.47151152167,4027931.6904921234, 836022.1595806566,4724777.412786076
SRS=EPSG:26912
STYLES=stail

GetMap and SLD

Example of component WMS (style definition by client)

^ up
WMS 1.1.1 GetMap with SLD HTTP GET (red railroads)

A GetMap request sending SLD UserLayer and user defined style information via HTTP GET and an SLD_BODY

Please note: the SLD_BODY needs to get URL encoded before being send to the service

HTTP KVP Request:
...services?
REQUEST=GetMap
SERVICE=WMS
VERSION=1.1.1
WIDTH=500
HEIGHT=500
TRANSPARENT=TRUE
FORMAT=image/png
BBOX=372233.9342431239,4460438,489069,4552689
SRS=EPSG:26912
SLD_BODY=
<sld:StyledLayerDescriptor version="1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:sld="http://www.opengis.net/sld"
xsi:schemaLocation="http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"
xmlns:app="http://www.deegree.org/app"
xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc">
<sld:UserLayer>
<sld:Name>MyLayer</sld:Name>
<sld:LayerFeatureConstraints>
<sld:FeatureTypeConstraint>
<sld:FeatureTypeName>app:Railroads</sld:FeatureTypeName>
</sld:FeatureTypeConstraint>
</sld:LayerFeatureConstraints>
<sld:UserStyle>
<sld:FeatureTypeStyle>
<sld:Rule>
<sld:MinScaleDenominator>0</sld:MinScaleDenominator>
<sld:MaxScaleDenominator>999999999</sld:MaxScaleDenominator>
<sld:LineSymbolizer>
<sld:Stroke>
<sld:CssParameter name="stroke">#ff0000</sld:CssParameter>
<sld:CssParameter name="stroke-opacity">1.0</sld:CssParameter>
<sld:CssParameter name="stroke-width">1.0</sld:CssParameter>
<sld:CssParameter name="stroke-dasharray">1</sld:CssParameter>
</sld:Stroke>
</sld:LineSymbolizer>
</sld:Rule>
</sld:FeatureTypeStyle>
</sld:UserStyle>
</sld:UserLayer>
</sld:StyledLayerDescriptor>

WMS 1.1.1 GetMap client style with UserLayer

A GetMap request sending SLD UserLayer and user defined style information via HTTP GET and an SLD reference (user_layer_style.xml).


HTTP KVP Request:

...services?
REQUEST=GetMap
SERVICE=WMS
VERSION=1.1.1
WIDTH=500
HEIGHT=500
TRANSPARENT=TRUE
FORMAT=image/png
BBOX=372233.9342431239,4460438,489069,4552689
SRS=EPSG:26912
SLD=${default.webapp.url}/sld/user_layer_style.xml

WMS 1.1.1 GetMap client style with NamedLayer and UserStyle

A GetMap request sending SLD NamedLayer and user style information via HTTP GET and an SLD reference (named_layer_user_style.xml).

In addition to the above request, a filter has been added to only return objects with id <= 842.

HTTP KVP Request:

...services?
REQUEST=GetMap
SERVICE=WMS
VERSION=1.1.1
WIDTH=500
HEIGHT=500
TRANSPARENT=TRUE
FORMAT=image/png
BBOX=372233.9342431239,4460438,489069,4552689
SRS=EPSG:26912
SLD=${default.webapp.url}/sld/named_layer_user_style.xml