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

WFS not loaded when additional attributes are in URL #3151

Closed
fzadrazil opened this issue Jun 23, 2022 · 1 comment · Fixed by #3152
Closed

WFS not loaded when additional attributes are in URL #3151

fzadrazil opened this issue Jun 23, 2022 · 1 comment · Fixed by #3152
Assignees
Labels
Milestone

Comments

@fzadrazil
Copy link
Collaborator

Bug

Describe the bug
When trying to add WFS by its url like this
https://maps.geocloud.sk/geoserver/sizp/wfs?service=WFS&version=2.0.0&request=GetCapabilities
HSLayers thows and error.

When I delete the unnecessary URL parameters, it adds the service correctly.
https://maps.geocloud.sk/geoserver/sizp/wfs

Other issue is, that the layer is not visible or zoomable when added in the map.

Expected behavior
Adding the layer should not be dependent on the query string parameters in the URL.

@FilipLeitner
Copy link
Collaborator

Two really interesting cases in here:

  • First problem was connected to version=2.0.0 which requires 'typeNames' instead of 'typeName' request parameter
  • Layer is not zoomable because no features are loaded. The reason is that the service is using URI notation to define GML feature CRS which is not recognised by openLayers e.g.
    <gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#5514" gml:id="kontroly_ibb.1.geom"> .... </gml:Point>
    Solved by registering URI aliases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants