I have problem with this WFS server:


I am trying to add this layer to QGIS 3.2.3 Bonn, but it does not work, I have an error. I think that the problem is with WFS 2.0.

closed as unclear what you're asking by PolyGeo Nov 14 '18 at 21:30

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Something to consider... For WFS 2.0.0 the request for type is done using typenames=& rather than typename so strictly QGIS is sending an incorrect request with mapy.geoportal.gov.pl/wss/service/INSPIREG2/httpauth/rest/… , however :) this service doesn't recognize typenames as a valid parameter... don't you just love standards – nmtoken Nov 14 '18 at 18:04

Can reproduce this in QGIS 3.2.1. Errormessage:

Layer is not valid: The layer srsname='EPSG:4326' typename='prg:PRG_Granica' url='http://mapy.geoportal.gov.pl/wss/service/PZGIKINSP/httpauth/rest/services/PZGIK/PRG/GeoDataServer/exts/InspireFeatureDownload/service?' version='auto' table="" sql= is not a valid layer and can not be added to the map. Reason:

...which is a bit meagre.

FME Desktop 2018.1 gives a more detailed message:

Received HTTP response header: 'HTTP/1.1 401 Unauthorized.' from 'http://mapy.geoportal.gov.pl:80/wss/service/PZGIKINSP/httpauth/rest/services/PZGIK/PRG/GeoDataServer/InspireFeatureDownload/service?SERVICE=WFS&VERSION=2.0.0&REQUEST=DescribeFeatureType&TYPENAMES=prg%3APRG_Granica&NAMESPACES=xmlns%28prg%2Curn%3Agugik%3Aspecyfikacje%3Agmlas%3ApanstwowyRejestrGranic%3A1.0%29&OUTPUTFORMAT=application%2Fgml%2Bxml%3B%20version%3D3.2'

It looks like the DescribeFeatureType link is not open to the web.

  • Thank you for your help. On geoportal.gov.pl/uslugi/usluga-pobierania-wfs in polish is information that this address shouldn't need log in so is strange. – Lukasz Oct 16 '18 at 10:43
  • The software needs the DescribeFeatureType to determine the FeatureType structure. Attributes etc. – nielsgerrits Oct 16 '18 at 10:44
  • 1
    Be aware that for WFS 2.n you/QGIS be using typenames not typename. The error message from QGIS seems correct though, the URL cited is not valid, but it seems a problem with QGIS sending the request – nmtoken Nov 14 '18 at 17:42
  • 1
    Note this isn't an answer to the question, it should be an edit to the question – nmtoken Nov 14 '18 at 18:08
  • 1
    Please use the edit link on your question to add additional information. The Post Answer button should be used only for complete answers to the question. - From Review – BERA Nov 14 '18 at 19:12

With QGIS 2.18 I got as far as this by setting version to 1.1.0:

Retrying request http://mapy.geoportal.gov.pl/wss/service/PZGIKINSP/httpauth/rest/services/PZGIK/PRG/GeoDataServer/exts/InspireFeatureDownload/service?SERVICE=WFS&REQUEST=GetFeature&VERSION=1.1.0&TYPENAME=prg:PRG_JednostkaPodzialuTerytorialnego&SRSNAME=urn:ogc:def:crs:EPSG::4326&BBOX=47.67417567632840303,12.33569895672977346,47.67427562038612621,12.33598455538388627,urn:ogc:def:crs:EPSG::4326: 3/3
2018-10-16T13:45:42 1   Server generated an exception in GetFeature response: Operation request contains an invalid parameter value. Error in filter expression: There is no (unique) geometry for FeatureType "prg:PRG_JednostkaPodzialuTerytorialnego".
2018-10-16T13:45:42 1   Download of features for layer prg:PRG_JednostkaPodzialuTerytorialnego failed or partially failed: Server generated an exception in GetFeature response: Operation request contains an invalid parameter value. Error in filter expression: There is no (unique) geometry for FeatureType "prg:PRG_JednostkaPodzialuTerytorialnego".. You may attempt reloading the layer with F5

Not the answer you're looking for? Browse other questions tagged or ask your own question.