Bug report #3991

WFS 1.1 data is not displayed

Added by Anita Graser over 13 years ago. Updated almost 9 years ago.

Status:Closed
Priority:Normal
Assignee:Marco Hugentobler
Category:Web Services clients/WFS
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:Yes Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:13981

Description

Data from WFS 1.1 is being loaded but the result is an empty layer (only column names in attributes, no values, no geometries).

Tested with: http://data.wien.gv.at/daten/wfs (any layer)

Fetching the data with wget seems to work fine.


Related issues

Duplicates QGIS Application - Feature request #4124: Add support for wfs 1.1.0 Closed 2011-08-01

History

#1 Updated by Giovanni Manghi over 13 years ago

The server works fine also in other GIS packages.

#2 Updated by Anita Graser over 13 years ago

  • Assignee set to Marco Hugentobler

#3 Updated by Anita Graser over 13 years ago

  • Target version set to Version 1.7.1

It seems like compatibility broke when they updated their WFS (Geoserver) from version 1.0 to 1.1: http://data.wien.gv.at/formate/wfs.html

Does QGIS WFS layer only support version 1.0?

#4 Updated by Tim Sutton about 13 years ago

  • Target version changed from Version 1.7.1 to Version 1.7.2

#5 Updated by Giovanni Manghi almost 13 years ago

  • Target version changed from Version 1.7.2 to Version 1.7.3

#6 Updated by Giovanni Manghi almost 13 years ago

  • Target version changed from Version 1.7.3 to Version 1.7.4

#7 Updated by Paolo Cavallini over 12 years ago

  • Affected QGIS version set to master
  • Target version changed from Version 1.7.4 to Version 1.8.0
  • Crashes QGIS or corrupts data set to No

#8 Updated by Paolo Cavallini over 12 years ago

  • Pull Request or Patch supplied set to No

#9 Updated by Paolo Cavallini over 12 years ago

  • Pull Request or Patch supplied changed from No to Yes

#10 Updated by Paolo Cavallini about 12 years ago

  • Target version changed from Version 1.8.0 to Version 2.0.0

#11 Updated by Evgeniy Nikulin about 11 years ago

If request is GetFeature (not GetCapabilities?!?!?) and xml encoding is not "utf-8", then data handler write error:

"Error: unknown encoding on line 1, column 30" 

Line 1 from respond:
<?xml version='1.0' encoding="windows-1251" ?>

If the encoding is utf-8, the data are displayed normally.

#12 Updated by Evgeniy Nikulin about 11 years ago

http://www.xml.com/pub/a/1999/09/expat/?page=2

There are four built-in encodings in expat:
UTF-8
UTF-16
ISO-8859-1
US-ASCII

:(

#13 Updated by Paolo Cavallini almost 11 years ago

  • Target version changed from Version 2.0.0 to Future Release - High Priority

#14 Updated by Anita Graser about 9 years ago

  • Subject changed from WFS data is not displayed to WFS 1.1 data is not displayed

Note: The data.wien.gv.at server has been changed to serve WFS 1.0 again, so it cannot be used to reproduce this issue anymore.

#15 Updated by Médéric RIBREUX almost 9 years ago

  • Status changed from Open to Feedback

Hello, bug triage...

I have made some tests on a WFS 1.1 service ( http://geoservices.brgm.fr/geologie?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=LITHO_1M_SIMPLIFIEE&SRSNAME=EPSG:4326 ). The BRGM WFS service is requested by default as WFS 1.0 from QGIS Client (if you add http://geoservices.brgm.fr/geologie in the WFS server list), so I have manually changed the datasource in the qgs file.

With such a layer, I get all of the attributes and the geometries. The geometries are not well projected but after a quick comparison with the WFS 1.0 version of the layer (that you can get at http://geoservices.brgm.fr/geologie?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=LITHO_1M_SIMPLIFIEE&SRSNAME=EPSG:4326 ), it seems to be a WFS server side problem. So, for me, QGIS 2.13 seems to be able to get WFS 1.1 layers.

Could someone test on an another service to be sure ?

#16 Updated by Giovanni Manghi almost 9 years ago

  • Status changed from Feedback to Closed
  • Resolution set to fixed/implemented

seems to work ok, tested on master.

Also available in: Atom PDF