Changes between Version 7 and Version 8 of SpatiaLite
- Timestamp:
- 01/15/12 07:12:57 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SpatiaLite
v7 v8 16 16 17 17 To load all the tables of a schema from Postgres to Spatialite (with or without geometry) and without the views: 18 18 19 {{{ 19 20 $ ogr2ogr --config PG_LIST_ALL_TABLES YES --config PG_SKIP_VIEWS YES -f "SQLite" mydb.sqlite -progress PG:"dbname='mydb' \ 20 21 active_schema=myschema schemas=myschema host='localhost' port='5432' user='myuser' password='mypass' " -lco LAUNDER=yes \ 21 -dsco SPATIALITE=yes -lco SPATIAL_INDEX= no22 -dsco SPATIALITE=yes -lco SPATIAL_INDEX=yes -gt 65536 -gt 22 23 }}} 24 This sintax need almost gdal 1.9.0 and spatialite 3.0.0 to avoid lost the 3rd dimension exporting the geometries.[[BR]] 25 Another point is the primary keys: The exportation of a full schema lost every primary key of integer type (don't lost the textual primary keys).[[BR]] 26 To avoid this lost you should use the "single table" call. 27