Web Map Service (WMS)¶
The OpenGIS® Web Map Service Interface Standard (WMS) provides a simple HTTP interface for requesting geo-registered map images from one or more distributed geospatial databases. A WMS request defines the geographic layer(s) and area of interest to be processed. The response to the request is one or more geo-registered map images (returned as JPEG, PNG, etc) that can be displayed in a browser application. The interface also supports the ability to specify whether the returned images should be transparent so that layers from multiple servers can be combined or not.
The standard can be obtained from the Open Geospatial Consortiums homepage.
The following tables provide an overview over the available WMS request parameters for each operation supported by EOxServer.
GetCapabilities¶
Table: “WMS GetCapabilities Request Parameters” below lists all parameters that are available with Capabilities requests.
Parameter |
Description / Subparameter |
Allowed value(s) / Example |
Mandatory (M) / Optional (O) |
---|---|---|---|
service |
Requested service |
WMS |
M |
request |
Type of request |
GetCapabilities |
M |
acceptVersions [1] |
Prioritized sequence of one or more specification versions accepted by the client, with preferred versions listed first (first supported version will be used) version1[,version2[,…]] |
1.3.0, 1.1.0, 1.0.0 |
O |
updateSequence |
Date of last issued GetCapabilities request; to receive new document only if it has changed since |
“2013-05-08” |
O |
GetMap¶
Table: “WMS GetMap Request Parameters” below lists all parameters that are available with GetMap requests.
Parameter |
Description / Subparameter |
Allowed value(s) / Example |
Mandatory (M) / Optional (O) |
---|---|---|---|
service |
Requested service |
WMS |
M |
request |
Type of request |
GetMap |
M |
version |
Version number |
1.3.0, 1.1.0, 1.0.0 |
M |
layers |
The layers to render. Must be a comma-separated list of layer names. Exposed layers are listed in the Capabilities document and depend on the contents of the instance. For each object in the database a base layer with the objects identifier as a name is added. Additionally a number of layers are added with the objects identifier plus a postfix as show in the list below:
|
M |
|
styles |
The style for each of the rendered layers to be rendered with. This must be either empty or a comma-separated list of either empty strings or names of valid styles. When left empty (for a single layer or the whole parameter), the default styling is applied. The available styles depend on the layer type. Outline and mask layers can be rendered in the basic colors. Single band output can be styled using a range of color scales. The Capabilities document lists the available styles per layer. |
M |
|
format |
Requested format of the map to be returned, currently:
|
image/tiff |
M |
bbox |
The bounding box of the output map. Depending on the service version and the coordinate reference system, the axis order might change. The following rules apply:
|
12,17,14,17.4 |
M |
crs / srs [1] |
The CRS the bbox values are expressed in. |
EPSG:4326 |
M |
width |
The width of the output image in pixels. |
512 |
M |
height |
The height of the output image in pixels. |
512 |
M |
bgcolor |
The background color to use in HEX notation: |
000000 |
M |
transparent |
Defines whether or not to use transparency for
non-colored regions of the image. The |
TRUE |
M |
dim_bands |
Selects the given bands as gray, RGB or RGBA channels. |
B04,B03,B02 |
O |
dim_wavelengths |
This behaves the same as with |
664.6,559.8,492.4 |
O |
dim_range |
Allows to specify a min/max value for each selected band linearly interpolate values. |
|
O |
cql |
Allows to specify metadata filters. See the Common Query Language (CQL) documentation for usage. |
|
O |
sortBy |
Allows to sort the images regarding a specific metadata
value. Can either be ascending or descending using |
|
O |
Layer Mapping¶
Various objects in EOxServer generate exposed layers to be requested by clients via WMS.
Base Object |
Suffix |
Description |
Style |
Advertised [2] |
---|---|---|---|---|
Coverage |
– |
Renders the coverage as a map. This is the
most basic for of rendering and
|
When the coverage only has a single field,
or only one is selected via |
no |
Mosaic |
– |
This behaves exactly like with Coverages but applies the rendering to all contained Coverages. |
Same as above. |
yes |
Product |
– |
Renders the Products default Browse or using the defaults Browse Type to dynamically render a browse. |
no |
|
Coverage/Product |
|
Renders the footprint of the Coverage/Product as a colorized geometry. |
Defines the color of the rendered geometry. |
no |
Mosaic/Collection |
|
Renders the footprint of all contained Coverages or Products as a colorized geometry. |
Defines the color of the rendered geometry. |
yes |
Coverage/Product |
|
Renders the Coverage/Product in its default
way (as with no prefix) but overlays it
with the footprint geometry (as with
|
Defines the color of the rendered geometry. |
no |
Mosaic/Collection |
|
Renders the Mosaic/Collection in its
default way (as with no prefix) but each
included Coverage/Product rendering is
overlayed with the footprint geometry (as
with the |
Defines the color of the rendered geometry. |
yes |
Product |
|
Renders the Products Browse of that Browse Type if available or uses the Browse Type to dynamically render a Browse. |
no |
|
Product |
|
Renders the Mask of the Product of that Mask Type as a rasterized vector layer. |
Defines the color of the geometry. |
no |
Product |
|
Use the default rendering of the product and apply the Mask of the specified Mask Type. |
no |
|
Collection |
– |
Renders all Products in the Collection with their default Browse (or dynamically using the default Browse Type). |
||
Collection |
|
Renders all contained Products using the Browse of that Browse Type or dynamically generated Browse of that Browse Type. |
||
Collection |
|
Renders all Masks of the contained Products as colorized geometries. |
||
Collection |
|
Renders all contained Browses using their default Browse or a dynamically generated Browse of the default Browse Type and individually apply the Mask of that Mask Type. |
Whether or not this layer is by default advertised in GetCapabilities documents. This can be overridden by setting the objects visibility.