[gdal-dev] Missing geometry type when using ogr2ogr to write FileGDB
Even Rouault
even.rouault at mines-paris.org
Sun Apr 21 10:44:55 PDT 2013
Le dimanche 21 avril 2013 19:20:18, Stefan Keller a écrit :
> Weird enough, this ogrinfo command works
>
> $ ogrinfo -ro WFS:
> http://openpoimap.ch/featureserver/workspace.cgi?key=HG4kFX2kEEqBSqvcswuh2E
> INFO: Open of `WFS:
> http://openpoimap.ch/featureserver/workspace.cgi?key=HG4kFX2kEEqBSqvcswuh2E
> ' using driver `WFS' successful.
> 1: pois (Point)
>
> This works too but stumbles over any additional URL parameters:
> $ ogrinfo -ro WFS:
> http://openpoimap.ch/featureserver/workspace.cgi?key=HG4kFX2kEEqBSqvcswuh2E
> &SERVICE=WFS&TYPENAME=pois INFO: Open of `WFS:
> http://openpoimap.ch/featureserver/workspace.cgi?key=HG4kFX2kEEqBSqvcswuh2E
> ' using driver `WFS' successful.
> 1: pois (Point)
> 'SERVICE' is not recognized as an internal or external command,
> operable program or batch file.
> 'TYPENAME' is not recognized as an internal or external command,
> operable program or batch file.
The issue is just a misuse of the shell syntax. You need to enclose your
WFS:xxx connection string between double quotes if it has & character in it.
ogr2ogr -f filegdb pois.gdb
"WFS:http://openpoimap.ch/featureserver/workspace.cgi?key=HG4kFX2kEEqBSqvcswuh2E&TYPENAME=pois"
More information about the gdal-dev
mailing list