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.39k stars 2.98k forks source link

[WFS] Layer is added incorrectly as mixed geometry collection #49335

Closed pathmapper closed 1 year ago

pathmapper commented 2 years ago

What is the bug or the crash?

Layer is added incorrectly as mixed geometry collection but there are only features with no geometry.

Result:

image


Expected:

image

Steps to reproduce the issue

  1. Add the following WFS connection to QGIS browser: https://xplanung.freiburg.de/xplansyn-wfs/services/xplansynwfs
  2. Add the feature type: xplan:BP_Bereich
  3. See error: A mixed geometry collection layer is added, but there are only features with no geometries returned with the WFS response (xplansynwfs.zip)

Versions

QGIS version 3.27.0-Master QGIS code revision 876188b627
Qt version 5.12.8
Python version 3.8.10
GDAL/OGR version 3.0.4
PROJ version 6.3.1
EPSG Registry database version v9.8.6 (2020-01-22)
Compiled against GEOS 3.8.0-CAPI-1.13.1 Running against GEOS 3.8.0-CAPI-1.13.1
SQLite version 3.31.1
PostgreSQL client version 12.11 (Ubuntu 12.11-0ubuntu0.20.04.1)
SpatiaLite version 4.3.0a
QWT version 6.1.4
QScintilla2 version 2.11.2
OS version Ubuntu 20.04.4 LTS

Active Python plugins sagaprovider | 2.12.99 grassprovider | 2.12.99 MetaSearch | 0.3.6 processing | 2.12.99 db_manager | 0.1.20

Supported QGIS version

New profile

Additional context

Similar issue in https://github.com/qgis/QGIS/issues/49328.

gioman commented 2 years ago

Maybe because it is advertised with having CRSs and an extent

image