[Qgis-user] Problem retrieving data in a WFS server -2.4

Richard Duivenvoorde rdmailings at duif.net
Sun Aug 17 23:47:08 PDT 2014


On 18-08-14 05:58, Lene Fischer wrote:
> Hi
> 
> I´m opening a project containing data from a WFS server.
> 
> In 2.2 all data is received correct but in 2.4 no data is transferred to
> my computer.
> 
> Using this WFS
> http://data.geus.dk/geusmap/ows/25832.jsp?VERSION=1.0.0&LAYERS=jupiter_boringer_ws,jupiter_anlaeg_ws,jupiter_bor_vandforsyning_ws,jupiter_bor_vandfors_andre_ws,jupiter_bor_cyklogram
> 
>  
> 
> The problem is for all my wfs connections.
> 
> Has anyone encountered this problem ?

Hi Lene,

did some trials here with your url in different versions of QGIS.

One thing that may be the case is that this service is pretty slow
(maybe the data needs an index somewhere?). Maybe QGIS's timout plays a
role here, you can set this higher in options/network.

Another thing to note, is that (in combi with slow services) caching a
large dataset (meaning sending a getfeaturerequest without bbox), can be
a (server) problem.
Try to test with unchecking the cache-checkbox, then QGIS sents a
featureRequest with an bbox filter

Here are some url's (from qgis debug info) to try out in a browser:

- CAPABILITIES:
http://data.geus.dk/geusmap/ows/25832.jsp?VERSION=1.0.0&LAYERS=jupiter_boringer_ws,jupiter_anlaeg_ws,jupiter_bor_vandforsyning_ws,jupiter_bor_vandfors_andre_ws,jupiter_bor_cyklogram&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=jupiter_anlaeg_ws&SRSNAME=EPSG:25832

- CACHED URL, not NO bbox filter, meaning if your server has NO
maxfeaturecount will suck up your full db (as gml):
http://data.geus.dk/geusmap/ows/25832.jsp?VERSION=1.0.0&LAYERS=jupiter_boringer_ws,jupiter_anlaeg_ws,jupiter_bor_vandforsyning_ws,jupiter_bor_vandfors_andre_ws,jupiter_bor_cyklogram&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=jupiter_anlaeg_ws&SRSNAME=EPSG:25832

- NON-CACHED URL: note the BBOX parameter = filtering
http://data.geus.dk/geusmap/ows/25832.jsp?VERSION=1.0.0&LAYERS=jupiter_boringer_ws,jupiter_anlaeg_ws,jupiter_bor_vandforsyning_ws,jupiter_bor_vandfors_andre_ws,jupiter_bor_cyklogram&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=jupiter_anlaeg_ws&SRSNAME=EPSG:25832&BBOX=619918.19438711204566061,6144995.55673087481409311,728913.12242628377862275,6204

As a test I tried the cached URL with curl on a server with enough
bandwidth to download a 4Gb iso file in a couple of minutes:

curl
"http://data.geus.dk/geusmap/ows/25832.jsp?VERSION=1.0.0&LAYERS=jupiter_boringer_ws,jupiter_anlaeg_ws,jupiter_bor_vandforsyning_ws,jupiter_bor_vandfors_andre_ws,jupiter_bor_cyklogram&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=jupiter_anlaeg_ws&SRSNAME=EPSG:25832"
-o /tmp/lene.gml
  % Total    % Received % Xferd  Average Speed   Time    Time     Time
Current
                                 Dload  Upload   Total   Spent    Left
Speed
100 39.7M    0 39.7M    0     0   719k      0 --:--:--  0:00:56 --:--:--
 763

I took a minute to receive the 40Mb file. If you are on a smaller
connection, it will probably give a time out.

Anyway. Please try again with some other WFS services and playing with
cached versus NON-cached (in combi with a small bbox), and if still you
find problems, file an issue.

HTH, Regards,

Richard Duivenvoorde




More information about the Qgis-user mailing list