Changes between Version 11 and Version 12 of SpatiaLite
- Timestamp:
- 01/15/12 07:24:30 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SpatiaLite
v11 v12 20 20 $ ogr2ogr --config PG_LIST_ALL_TABLES YES --config PG_SKIP_VIEWS YES -f "SQLite" mydb.sqlite -progress PG:"dbname='mydb' \ 21 21 active_schema=myschema schemas=myschema host='localhost' port='5432' user='myuser' password='mypass' " -lco LAUNDER=yes \ 22 -dsco SPATIALITE=yes -lco SPATIAL_INDEX=yes -gt 65536 -gt22 -dsco SPATIALITE=yes -lco SPATIAL_INDEX=yes -gt 65536 23 23 }}} 24 24 Some advertising: To avoid the lost of the third dimension exporting geometries you need use almost gdal 1.9.0 and spatialite library 3.0.0.[[BR]] … … 26 26 of type TEXT that are also primary keys. To avoid this lost you should use the "single table" call. 27 27 28 [[BR]] 29 To load a table (mytable) (with a geometry columns named "geometry") from a Sqlite/Spatialite (mysqlite.sqlite) into a schema (myschema) of a Postgres/Postgis, using gdal 1.9.0 and spatialite 3.0.0:[[BR]] 30 31 {{{ 32 ogr2ogr --config SQLITE_LIST_ALL_TABLES YES -f "PostgreSQL" PG:"dbname='mydb' active_schema=myschema schemas=myschema host='localhost' port='5432' user='myuser' password='mypass' " -overwrite -lco SCHEMA=myschema -lco GEOMETRY_NAME=geometry -lco SPATIAL_INDEX=YES mysqlite.sqlite mytable 33 }}} 34