[gdal-dev] GetNextFeature doesn't add version and typenames in URL

Even Rouault even.rouault at spatialys.com
Fri Jun 18 16:39:35 PDT 2021


Based on information provided privately by Jens, the connection string 
to use should also include the namespaces parameter. I presume the 
server behind is Deegree which is quite pedantic about that. The QGIS 
WFS client automatically adds it, whereas the OGR WFS one not (it should 
likely)

So use:

WFS:https://services.datafordeler.dk/GeoDanmarkVektor/GeoDanmark60_HIST_GML3/1.0.0/WFS?servicename=wfs&REQUEST=DescribeFeatureType&SERVICE=WFS&username={your_username}&password={your_password}&version=2.0.0&typenames=Afvandingsgroeft&namespaces=xmlns(gdk60,http%3A%2F%2Fdata.gov.dk%2Fschemas%2Fgeodanmark60%2F2%2Fgml3)

Le 19/06/2021 à 00:51, Even Rouault a écrit :
>
> Jens,
>
> when writing a report, remember that the reader cannot see your 
> screen. So at a minimum, provide the connection string to that WFS 
> service that you provide to GDAL.
>
> Even
>
> Le 19/06/2021 à 00:43, Jens Søe Christiansen a écrit :
>> Hi
>> I'm desperately trying to read data from a Danish WFS service. 
>> Everything is working well until I try to GetNextFeature. The GDAL is 
>> returning HTTP ERROR 400 and the reason is that version and typenames 
>> are missing in the request!
>>
>> Am I missing something or is something wrong with the WFS service (It 
>> is working well from inside QGIS) ?
>>
>> Best regards
>> Jens Christiansen
>>
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/gdal-dev
> -- 
> http://www.spatialys.com
> My software is free, but my time generally not.
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
http://www.spatialys.com
My software is free, but my time generally not.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210619/864a843d/attachment.html>


More information about the gdal-dev mailing list