qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.32k stars 2.96k forks source link

[wfs] error for GetFeature: The SRS for BBOX is syntactically incorrect. #57915

Open pathmapper opened 2 months ago

pathmapper commented 2 months ago

What is the bug or the crash?

SRS for BBOX parameter is missing:

https://www.wfs.nrw.de/geobasis/wfs_nw_3d-gebaeudemodell_lod1?SERVICE=WFS&REQUEST=GetFeature&VERSION=1.1.0&TYPENAME=core:Address&BBOX=840862.26138782454654574,6663500.88930276967585087,909366.07761299889534712,6707375.24030579254031181,

<?xml version="1.0" encoding="utf-8" ?>
<ExceptionReport 
    version="1.1.0"
    xmlns="http://www.opengis.net/ows"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   xsi:schemaLocation="http://www.opengis.net/ows http://www.wfs.nrw.de/schemas/ogc/ows/1.0.0/owsExceptionReport.xsd">
    <Exception exceptionCode="InvalidParameterValue" locator="unknown">
        <ExceptionText>
            Request rejected due to errors.
            InternalExceptionCode: iiInvalidParameterValue.  
            Reason: 
            The SRS for BBOX is syntactically incorrect.
        </ExceptionText>
    </Exception>
</ExceptionReport>

Steps to reproduce the issue

  1. Add WFS connection: https://www.wfs.nrw.de/geobasis/wfs_nw_3d-gebaeudemodell_lod1
  2. Load feature type : core:Address (Adresse)
  3. See error

Versions

Libraries
QGIS version3.39.0-Master
QGIS code revision133522b2b9e
Qt version5.15.3
Python version3.10.12
GDAL/OGR version3.9.0dev-18f9ed2b7c
PROJ version8.2.1
EPSG Registry database versionv10.041 (2021-12-03)
GEOS version3.10.2-CAPI-1.16.0
SQLite version3.37.2
PDAL version2.3.0
PostgreSQL client version14.12 (Ubuntu 14.12-0ubuntu0.22.04.1)
SpatiaLite version5.0.1
QWT version6.1.4
QScintilla2 version2.11.6
OS versionUbuntu 22.04.4 LTS
 
Active Python plugins
grassprovider2.12.99
MetaSearch0.3.6
processing2.12.99
db_manager0.1.20

Supported QGIS version

New profile

Additional context

GetCapabilities advertises two crs, one for height: https://www.wfs.nrw.de/geobasis/wfs_nw_3d-gebaeudemodell_lod1?SERVICE=WFS&REQUEST=GetCapabilities&ACCEPTVERSIONS=2.0.0,1.1.0,1.0.0

<ows:Value>urn:ogc:def:crs,crs:EPSG::25832,crs:EPSG::7837</ows:Value>

rouault commented 2 months ago

There's definitely an issue on QGIS side which is confused by the DefaultCRS being a compoundCRS "urn:ogc:def:crs,crs:EPSG::25832,crs:EPSG::7837", and that adds a trailing comma at the end of the BBOX parameter, but even if it was solved, the server seems buggy