[gdal-dev] OGR2OGR seem last the field with primary key
aperi2007
aperi2007 at gmail.com
Fri Jan 13 14:55:26 EST 2012
Hi,
I notice that try-ing exporting from Postgres using ogr2ogr.exe
It lost completely the primary key filed if that is a integer field.
Instead it don't lost the same primary key field if it is a varchar type.
Is a know bug this ?
I'm use the gdal 1.9.
I try exporting to a spatialite or to a shapefile.
Both report the lost of the field PK.
The sintax I'm using is this:
ogr2ogr.exe --config PG_LIST_ALL_TABLES YES --config PG_SKIP_VIEWS YES
-f "SQLite" prova.sqlite -progress PG:"dbname='test' active_schema=work
schemas=work host='local' port='5432' user='postgres'
password='postgres' " -overwrite -lco LAUNDER=yes -dsco SPATIALITE=yes
-lco SPATIAL_INDEX=yes -gt 65536
Thx,
Andrea.
More information about the gdal-dev
mailing list