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" _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
