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.
- If the Format element equals 'image/gif' or 'image/png':
- Otherwise, fail the test for this Style
- There exists a non-empty href attribute in the OnlineResource element. Let the value of the attibute be
Reference(s)
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.
The namespace prefixes used as described in README.md.