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 with GML3 not supporting custom SRS #133

Open
chrismayer opened this issue May 26, 2020 · 3 comments
Open

WFS with GML3 not supporting custom SRS #133

chrismayer opened this issue May 26, 2020 · 3 comments
Labels

Comments

@chrismayer
Copy link
Collaborator

chrismayer commented May 26, 2020

The WFS layer support introduced with #105 has a know limitation: In case you are using a WFS with GML3 and a custom SRS it might happen that the loading of the features fails due to missing SRS definition (although it is defined in the projectionDefs section of the Wegue config).

The reason might be that GML has at three ways of specifying the SRS. As suggested by @justb4 one workaround would be to register (with Proj.js) all variant-names for the same SRS.

WMS to reproduce: https://geodata.nationaalgeoregister.nl/nationaleparken/wfs
FeatureType: nationaleparken:nationaleparken

Corresponding Wegue layer configuration:

    {
      "type": "WFS",
      "lid": "dutch-nat-parks",
      "name": "WFS (Dutch National Parks PDOK)",
      "url": "https://geodata.nationaalgeoregister.nl/nationaleparken/wfs",
      "typeName": "nationaleparken:nationaleparken",
      "version": "2.0.0",
      "maxFeatures": 10,
      "formatConfig": {
      },
      "format": "GML3",
      "projection": "EPSG:28992",
      "loadOnlyVisible": true,
      "visible": false,
      "selectable": true,
      "style": {
        "strokeColor": "white",
        "strokeWidth": 2,
        "fillColor": "rgba(155,153,51,0.5)"
      },
      "attributions": "<a href='https://www.pdok.nl' target='_blank'>PDOK</a> by Dutch Kadaster"
    }
@chrismayer chrismayer added the bug label May 26, 2020
@justb4
Copy link
Collaborator

justb4 commented May 26, 2020

Probably "format": "GML3", is meant to reproduce?

@chrismayer
Copy link
Collaborator Author

Sure, sorry. I just corrected it.

@chrismayer
Copy link
Collaborator Author

Maybe this is somehow related: openlayers/openlayers#8456

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

No branches or pull requests

2 participants