Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INSPIRE WMS - Legend URL #1019

Closed
Dnoack49 opened this issue Jan 18, 2024 · 2 comments
Closed

INSPIRE WMS - Legend URL #1019

Dnoack49 opened this issue Jan 18, 2024 · 2 comments
Assignees
Labels
user-to-fix Problem is present on user side

Comments

@Dnoack49
Copy link

Dear all,

we are trying to validate the following WMS (using the production and staging instance):
https://inspire.brandenburg.de/services/el_gmk_wms?request=GetCapabilities&service=WMS

and we receive the error:
The legend format is invalid. The validator is expecting 'image/png', but the defined legend format is 'text/xml; charset=UTF-8'. Please, review your code and try again.
grafik

However the Legen URL Format is set to image/png
Is this really an error? Could you please provide us with some guidance on what needs to be changed?

Kind regards

@fabiovinci
Copy link
Collaborator

Dear @Dnoack49,

according to the related test method "Layer Style Legend URL", the validator checks that all the responses of the LegendURLs are valid images.

In your case, some LegendURL links are not working (the response is "text/xml; charset=UTF-8" instead of "image/png"), e.g. https://inspire.brandenburg.de/services/gmk_wms?language=ger&version=1.3.0&service=WMS&request=GetLegendGraphic&sld_version=1.1.0&layer=el_isobathdense&format=image/png&STYLE=%22%20xmlns:xlink=%22http://www.w3.org/1999/xlink

So, you need to check your WMS settings.

@fabiovinci fabiovinci added the user-to-fix Problem is present on user side label Jan 18, 2024
@Dnoack49
Copy link
Author

Alright thank you very much, we will check our configuration. In case I have further questions I will reopen the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user-to-fix Problem is present on user side
Projects
None yet
Development

No branches or pull requests

2 participants