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

Jens Søe Christiansen jenssc at pocalipse.dk
Sun Jun 20 03:54:42 PDT 2021


Wauw you are good :-)

Everything is working perfectly now so thank you so much for all your help
Even.

Best regards
Jens Christiansen

Den lør. 19. jun. 2021 kl. 01.39 skrev Even Rouault <
even.rouault at spatialys.com>:

> 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 listgdal-dev at lists.osgeo.orghttps://lists.osgeo.org/mailman/listinfo/gdal-dev
>
> -- http://www.spatialys.com
> My software is free, but my time generally not.
>
>
> _______________________________________________
> gdal-dev mailing listgdal-dev at lists.osgeo.orghttps://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/20210620/e165b5cb/attachment.html>


More information about the gdal-dev mailing list