-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 Layer is not rendered when requested CRS is not matching project CRS and "Only request features overlapping the view extent" option is set #44054
Comments
@pathmapper works fine here, QGIS master on Ubuntu 20.04 |
@gioman sometimes it's working, often not. I can reproduce it often, did you have a look at the GIF? |
@pathmapper I did, seems to work all the time here. |
It's also worth to mention, that this is reproducible on 4 different machines and different networks. If the datasource for the WFS server is set to EPSG:25832 (so that it matches the project CRS) there are no issues. Maybe the issue has to do with the on-the-fly reprojection? @gioman any idea
If the project CRS is set to EPSG:25832 shouldn't QGIS request the WFS in EPSG:25832 to avoid on-the-fly reprojection? |
The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". |
This is still reproducible with a new profile and master da03027 on Ubuntu 20.04.2: Please have a look at the following GIF which shows another way to reproduce the issue: The first added layer The layer |
@pathmapper here: |
@gioman thanks for checking again. Could this be hardware dependent? Would be good if someone else could try to reproduce like in #44095 where you couldn't reproduce but @NyakudyaA was able to do so... Just also reproduced on Windows 10 with
Is there anything I can do to help debugging? |
uncheck this option, restart QGIS, try again. |
@gioman that's it, thank you so much! 🎉 I've updated the How to Reproduce part of the issue description, now you are able to reproduce, right? Regarding the issue itself:
So it looks like the issue is that for some reason the WFS layer with a different CRS compared to the project CRS is not rendered on the canvas despite the GetFeature request was successful. |
@pathmapper not totally unexpected, probably the browser used a cached network request. Just an idea. |
@gioman the issue isn't limited to WFS layers added via QGIS Browser. The layer is also not rendered if it is added via the (The first via QGIS Browser added layer Kindergärten_2019_09_02 is in EPSG:25832, so it is matching the project CRS and is rendered.) |
The issue here is on the WFS server. One can see in https://geo.kreis-viersen.de/ows/abk-material-nrw?SERVICE=WFS&REQUEST=GetFeature&VERSION=1.1.0&TYPENAME=test_layer_epsg_4326 that it uses a longitude, latitude order for coordinates, but in WFS 1.1.0, it should respect the EPSG axis order of EPSG:4326 which is latitude, longitude. |
Thanks for looking into this and implementing the hint @rouault !
The WFS Server in question is a QGIS Server.
According to the description of @elpaso's PR #41242, QGIS Server is following the convention used by GeoServer which is longitude/latitude for the representation
I understood this whole WFS axis order topic is a whole mess, but currently we are needing a workaround for QGIS Desktop using a WFS provided by QGIS Server which feels bit awkward. Looks like there are now three options:
|
It would be much less ambiguous if QGIS server would use srsName=urn:ogc:def:crs:EPSG::4326 and latitude/longitude order |
Describe the bug
WFS Layer from QGIS server is not rendered when requested CRS is not matching project CRS.
How to Reproduce (updated 2021-07-22)
EPSG:25832
as default CRStest_layer_epsg_4326
or use the Add WFS Layer... dialog with CRS EPSG:4326test_layer_epsg_4326
is not rendered but attribute table and feature count are available.EPSG:4326
, the data is rendered on the canvas.QGIS and OS versions
Additional context
The text was updated successfully, but these errors were encountered: