Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 2.3 KB

A.38.IR45.IR47.style.legend.url.md

File metadata and controls

44 lines (31 loc) · 2.3 KB

A.38.IR45.IR47.style.legend.url

Purpose: Legend is required for explaining the data visualization used for each layer. If the legend contains language-specific elements, localized legends shall be made available in each localized capabilities document.

Prerequisites

Test method

For each Layer qualified as presenting an INSPIRE harmonized dataset during the previously run test A.35.IR39.harmonized.layer.name:

  • Check that for each Style element:
    • There exists a non-empty href attribute in the OnlineResource element. Let the value of the attibute be href.
    • Resolve and download the Internet resource referred to by href. If the download is successful and a non-empty image file returned:
      • If the Format element equals 'image/gif' or 'image/png':
        • the downloaded resource must be a valid image of these image formats correspondingly. If it is, pass the test. If not, fail the test for this Style.
      • Otherwise, pass the test for this Style.
    • Otherwise, fail the test for this Style

Reference(s)

  • TG VS, chapter 4.2.3.3.4.8 Styles
  • IR NS, Annex III, Part A, 2.2.4. Layers Metadata parameters

Test type: Automated

Notes

  • Interpreted as to be applicable only to layers with an INSPIRE harmonized name.
  • Note that it's generally not required for the validator to recognize the image formats of the downloaded legend files in order to pass the test.

Contextual XPath references

The namespace prefixes used as described in README.md.

Abbreviation XPath expression
Layer /wms:WMS_Capabilities/wms:Capability//wms:Layer
Style element ./wms:Style
href attribute ./wms:Style/wms:LegendURL/wms:OnlineResource/@xlink:href
Format element ./wms:Style/wms:LegendURL/wms:Format