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
[email protected]
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
[email protected]
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
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to