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

WMS is not displayed although the extent fits to the mapextent / zoom to Extent displays wrong region #1264

Closed
astroidex opened this issue Nov 3, 2020 · 4 comments
Labels
Milestone

Comments

@astroidex
Copy link
Member

Describe the bug
If you load a WMS to your application with WMS version 1.1.1 and version 1.3.0 the layers are not visible for WMS 1.3.0 in regions where they should be displayed.

  • Version 1.1.1: looks fine
  • Version 1.3.0: WMS is not displayed (no requests to WMS due to extent) and zoom to layer zooms to wrong extent

I tested with

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://demo.mapbender.org/application/mapbender_user_yml (Version 3.2.2 or your local installation)
  2. Load WMS twice to your applicateion
  1. WMS 1.1.1 behaves fine: WMS is displayed in NRW / Zoom to layer zooms to NRW

  2. See error WMS in 1.3.0 is not requested in the region of NRW / layers are displayed gray / F12 not map-request to WMS

  3. See error: WMS 1.3.0:

    • Zoom to Layer (on a layer): zooms to Italy
    • Zoom to layer for the root-layer zooms to NRW

Expected behavior
Both versions should use the extent like defined in the WMS.

Versions (please complete the following information if it helps to narrow down the bug):

  • Mapbender: 3.2.2

Screenshots / Logmessage

WMS 1.3.0 Mapbender does not request WMS 1.3.0
wms_request_layer

WMS 1.3.0 layer: Zoom to layer shows Italy instead of NRW
wms_1 3 0zoom_to_layer

@thzanger
Copy link

thzanger commented Nov 6, 2020

Thank you for this information. I could reproduce the behaviour and forwarded the issue to the internal Mapbender ticket system.

@astroidex
Copy link
Member Author

You can reproduce the error also with the WMS OSM Demo:

  1. Update the OSM Demo WMS which is part of the Mapbender installation already https://osm-demo.wheregroup.com/service?VERSION=1.3.0
    (you can see that the WMS does not provide the BBox for every supported CRS)
  2. Create an application in EPSG:25832
  3. max. Extent: minx 251000 miny 5400000 / maxx 475000 maxy 5850000
  4. Start-Extent: minx 361000 miny 5619000 / maxx 371150 maxy 5625000
  5. See error: OSM Demo is not requested (layers are grey)

@werrolf
Copy link
Contributor

werrolf commented Nov 18, 2020

The service capabilities emit these values:
1.1.1: <BoundingBox SRS="EPSG:3034" minx="3.7054e+06" miny="2.61812e+06" maxx="4.0085e+06" maxy="2.86069e+06"/>
1.3.0: <BoundingBox CRS="EPSG:3034" minx="2.61812e+06" miny="3.7054e+06" maxx="2.86069e+06" maxy="4.0085e+06"/>
And that's the entire problem.

Mapbender does not interpret WMS1.3.0 axis flipping on neu-ordered projections in layer bounding boxes.

Solution proposal is to completely ignore <BoundingBox> elements and use only the values from the prescribed LonlatBoundingBox (1.1.1) / EX_GeographicBoundingBox (1.3.0) elements.

@werrolf
Copy link
Contributor

werrolf commented Nov 18, 2020

You can reproduce the error also with the WMS OSM Demo:

  1. Update the OSM Demo WMS which is part of the Mapbender installation already https://osm-demo.wheregroup.com/service?VERSION=1.3.0
    (you can see that the WMS does not provide the BBox for every supported CRS)
  2. Create an application in EPSG:25832
  3. max. Extent: minx 251000 miny 5400000 / maxx 475000 maxy 5850000
  4. Start-Extent: minx 361000 miny 5619000 / maxx 371150 maxy 5625000
  5. See error: OSM Demo is not requested (layers are grey)

No issue observed.

@thzanger thzanger added this to the 3.0.8.6 milestone Nov 24, 2020
@rschwammborn rschwammborn modified the milestones: 3.0.8.6, 3.2.3 Mar 11, 2021
@thzanger thzanger added the Bug label Mar 15, 2021
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

4 participants