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

Server OAPIF: bbox filter isn't working if data source CRS is not EPSG:4326/WGS84 #47302

Closed
1 of 2 tasks
pathmapper opened this issue Feb 11, 2022 · 2 comments · Fixed by #47318
Closed
1 of 2 tasks

Server OAPIF: bbox filter isn't working if data source CRS is not EPSG:4326/WGS84 #47302

pathmapper opened this issue Feb 11, 2022 · 2 comments · Fixed by #47318
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server

Comments

@pathmapper
Copy link
Contributor

pathmapper commented Feb 11, 2022

What is the bug or the crash?

The bounding box filter isn't working for QGIS Server OAPIF:

https://docs.qgis.org/testing/en/docs/server_manual/services/ogcapif.html#bounding-box-filter

Steps to reproduce the issue

https://geo.kreis-viersen.de/ows/osm-daten/wfs3/collections/containerstandorte_nrw/items.json?bbox=-180,-90,180,90

or

https://geo.kreis-viersen.de/ows/osm-daten/wfs3/collections/containerstandorte_nrw/items.json?bbox=6.365918,51.254137,6.446942,51.296776

gives no resultes but

https://geo.kreis-viersen.de/ows/osm-daten/wfs3/collections/containerstandorte_nrw/items.json

gives features.

Versions

QGIS Server master and 3.22.3 on Ubuntu

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

@pathmapper pathmapper added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Feb 11, 2022
@gioman gioman added the Server Related to QGIS server label Feb 11, 2022
@pathmapper pathmapper changed the title Server OAPIF: bbox filter isn't working Server OAPIF: bbox filter isn't working if source CRS is not EPSG:4326/WGS84 Feb 11, 2022
@pathmapper
Copy link
Contributor Author

The CRS of the data source for
https://geo.kreis-viersen.de/ows/osm-daten/wfs3/collections/containerstandorte_nrw/items.json?bbox=-180,-90,180,90
is EPSG:25832.

Here is another example where the source CRS is EPSG:4326:
https://geo.kreis-viersen.de/ows/abk-material-nrw/wfs3/collections/test_layer_epsg_4326/items.json?bbox=-180,-90,180,90

So it looks like the bbox filter is currently only working if the data source CRS is EPSG:4326.

@pathmapper pathmapper changed the title Server OAPIF: bbox filter isn't working if source CRS is not EPSG:4326/WGS84 Server OAPIF: bbox filter isn't working if data source CRS is not EPSG:4326/WGS84 Feb 11, 2022
@pathmapper
Copy link
Contributor Author

To reproduce the issue:
test_project_and_data.zip

elpaso added a commit to elpaso/QGIS that referenced this issue Feb 12, 2022
qgis-bot pushed a commit that referenced this issue Feb 15, 2022
domi4484 pushed a commit to domi4484/QGIS that referenced this issue Feb 16, 2022
nyalldawson pushed a commit that referenced this issue Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants