Layer bearbeiten

Hinzufügen und entfernen von WMS-Layern.

 

Bezeichnung
Kurzbezeichnung des Layers

Beschreibung
Kurze Beschreibung des Inhaltes

Url
URL des WMS

Möglich sind interne URL's eines Dienste des LWL aber auch URL's die im Internet verfügbar sind.

Öffentlich
Dienste die auch Benutzer außerhalb des LWL sehen dürfen

Besitzer
Zuweisung an Benutzer ?! Unklare Verwendung

Optionen
Optionen zur Einbindung des Dienstes auf der Grundlagen der OGC in das Kartenfenster

Bezeichnung Wert Beschreibung
isBaseLayer true / false true = Dieser Layer ist ein Baselayer (Hintergrundkarte)
singleTile true / false true = Kartenausschnitt wird als gesamtes Bild geladen. Nötig wenn z.B. Beschriftungen wiederholt (gekachelt) auftreten
ratio Zahl (Float) Benutzt wenn in singleTile modus. Wert meist 1.5
queryableLayers Namen Kommaseparierte Liste mit Namen der Abfragbaren Layer. Nur für von LWL.IT freigegebene Dienste möglich.

 

Parameter
Parameter des Kartenaufrufes des Dienstes auf Basis der Definition eines WMS

Bezeichnung Wert Beschreibung Pflicht
VERSION Zeichenkette Version des Dienstes. Wert ist einer von 1.0.0, 1.1.0, 1.1.1, 1.3. x
SERVICE WMS Name des Dienstes x
REQUEST GetMap Bezeichnung der auszuführenden Funktion. GetMap = Diese Anfrage liefert ein georeferenziertes Rasterbild (Karte) vom WMS zurück. x
LAYERS Namen Kommaseparierte Liste mit Namen der anzuzeigenden Layer. x
TRANSPARENT true / false true = wenn der Layer durchsichtig angezeigt werden soll.  

 

The GetMap operation requests that the server generate a map. The core parameters specify one or more layers and styles to appear on the map, a bounding box for the map extent, a target spatial reference system, and a width, height, and format for the output. The information needed to specify values for parameters such as layers, styles and srs can be obtained from the Capabilities document.

The response is a map image, or other map output artifact, depending on the format requested. GeoServer provides a wide variety of output formats, described in WMS output formats.

The standard parameters for the GetMap operation are:

Parameter Required? Description
service Yes Service name. Value is WMS.
version Yes Service version. Value is one of 1.0.0, 1.1.0, 1.1.1, 1.3.
request Yes Operation name. Value is GetMap.
layers Yes Layers to display on map. Value is a comma-separated list of layer names.
styles Yes Styles in which layers are to be rendered. Value is a comma-separated list of style names, or empty if default styling is required. Style names may be empty in the list, to use default layer styling.
srs or crs Yes Spatial Reference System for map output. Value is in form EPSG:nnn. crs is the parameter key used in WMS 1.3.0.
bbox Yes Bounding box for map extent. Value is minx,miny,maxx,maxy in units of the SRS.
width Yes Width of map output, in pixels.
height Yes Height of map output, in pixels.
format Yes Format for the map output. See WMS output formats for supported values.
transparent No Whether the map background should be transparent. Values are true or false. Default is false
bgcolor No Background color for the map image. Value is in the form RRGGBB. Default is FFFFFF (white).
exceptions No Format in which to report exceptions. Default value is application/vnd.ogc.se_xml.
time No Time value or range for map data. See Time Support in Geoserver WMS for more information.
sld No A URL referencing a StyledLayerDescriptor XML file which controls or enhances map layers and styling
sld_body No A URL-encoded StyledLayerDescriptor XML document which controls or enhances map layers and styling

GeoServer provides a number of useful vendor-specific parameters for the GetMap operation. These are documented in the WMS vendor parameters section.

Although the standard specifies many of the parameters as being mandatory, GeoServer provides the WMS Reflector to allow many of them to be optionally specified. Experimenting with this feature is a good way to get to know the GetMap parameters.

An example request for the topp:states layer to be output as a PNG map image in SRS EPGS:4326 and using default styling is:

http://localhost:8080/geoserver/wms?
request=GetMap
&service=WMS
&version=1.1.1
&layers=topp%3Astates
&styles=
&srs=EPSG%3A4326
&bbox=-145.15104058007,21.731919794922,-57.154894212888,58.961058642578&
&width=780
&height=330
&format=image%2Fpng