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.49k stars 2.99k forks source link

DescribeFeatureType failed when adding a WFS layer #50946

Open ruben2s opened 1 year ago

ruben2s commented 1 year ago

What is the bug or the crash?

I am trying to add the layers provided by this WFS service: http://ideadif.adif.es/services/wfs?service=WFS&request=GetCapabilities. But I get an error saying that DescribeFeatureType failed. Is this because the server sends an incorrect response?

Steps to reproduce the issue

Add a WFS layer and configure the server to http://ideadif.adif.es/services/wfs?service=WFS&request=GetCapabilities.

Then connect to the server and try to add any layers. It fails.

Versions

3.28.0

Supported QGIS version

New profile

Additional context

No response

agiudiceandrea commented 1 year ago

Complete error messages:

Server exception
DescribeFeatureType failed

WARNING Analysis of DescribeFeatureType response failed for url pageSize='10000' pagingEnabled='false' preferCoordinatesForWfsT11='false' typename='tn-ra:RailwayStationNode' url='http://ideadif.adif.es/services/wfs' version='2.0.0': It is probably a schema for Complex Features.

AFAIK the native QGIS WFS client doesn't support complex features: see https://github.com/qgis/QGIS/issues/27076.

pathmapper commented 1 year ago

As a workaround you could try the plugin WFS 2.0 Client: https://plugins.qgis.org/plugins/wfsclient/

grafik