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.
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to