I have trouble getting features from a WFS using a bounding box with the BBOX parameter. As soon as I specify any BBOX, the WFS returns an empty result.
I have seen similar questions as:
so I'm wondering if there is a general approach towards troubleshooting/debugging problems like that.
What are the steps one should follow to pinpoint the problem?
So far I have tried the following:
- I made sure the WFS does support the BBOX parameter by checking the capabilities.
- I checked the results should not be empty using QGIS.
- I tried to call the WFS without the bounding box to ensure it is working correctly.
- I checked the order of the coordinates (smaller values first).
- I tried different CRS constellations, e.g., specifying the bbox in epsg:4326 https://www.lfu.bayern.de/gdi/wfs/natur/schutzgebiete?service=WFS&version=2.0.0&request=GetFeature&typeName=landschaftsschutzgebiet&srs=epsg%3A25832&outputFormat=GML3&bbox=11.624755719505565%2C+47.93641248703169%2C+11.744637946794592%2C+48.045366254710764%2C+epsg%3A4326 or https://www.lfu.bayern.de/gdi/wfs/natur/schutzgebiete?service=WFS&version=2.0.0&request=GetFeature&typeName=landschaftsschutzgebiet&srs=epsg%3A25832&outputFormat=GML3&bbox=11.624755719505565%2C+47.93641248703169%2C+11.744637946794592%2C+48.045366254710764%2C+urn:ogc:def:crs:EPSG::4326
typenames
nottypename
for 2.0.0 GetFeature and you need to usesrsname
notsrs
.https://www.lfu.bayern.de/gdi/wfs/natur/schutzgebiete?service=WFS&version=2.0.0&request=GetFeature&typeNames=landschaftsschutzgebiet&srsname=epsg%3A25832&outputFormat=GML3&bbox=695769.22100187%2C+5312772.2889944585%2C+704904.6180023446%2C+5324801.635994857%2C+epsg%3A25832
gives correct result