Link Search Menu Expand Document

WMS (Web Map Service)

Services

DELWP DataVic

data.gov.au

Pozi Cloud Server

Styling

External SLD

WMS GetMap requests can be made with an sld parameter that contains the URL of an SLD file.

Note: as at 25 Feb 2022, the data.gov.au WMS service is not successfully responding to WMS requests that point to external SLDs. See ‘Embedded SLD’ below for an alternative styling configuration. Or better yet, consider using WFS if the dataset is small enough.

Embedded SLD

WMS GetMap requests can be made with an sld_body parameter that contains the SLD styling rules as a string of XML.

Switching from external SLD to embedded SLD:

  1. download the existing external SLD and open in text editor (VSCode or NotePad++ recommended)
  2. find and replace double spaces with blank
  3. find and replace line returns with blank
  4. find and replace double quotes with single quotes

The resulting text is a single line of XML.

In the dataset config, replace the existing sld parameter with a new sld_body parameter, using the line of XML as the value.

Examples