Convert all GRASS 6 vector maps to GRASS 7: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
mNo edit summary
(link to manual pages)
Line 1: Line 1:
== Convert automatically all GRASS 6 vector maps to GRASS 7 (including attribute transfer from DBF to SQLite) ==
== Convert automatically all GRASS 6 vector maps to GRASS 7 (including attribute transfer from DBF to SQLite) ==


To become usable in GRASS 7, all vector maps in a mapset need to be updated to the improved vector file format and database management.
To become usable in GRASS 7, all vector maps in a mapset need to be updated to the improved vector file format (i.e., rebuild the topology with {{cmd|v.build.all|version=70}} along with the change to the SQLite database backend (new default in GRASS 7 instead of DBF in GRASS 6, using {{cmd|db.connect|version=70}} and {{cmd|v.db.reconnect.all|version=70}}).


Run this in GRASS 7:
Run this in GRASS 7:
Line 9: Line 9:
v.build.all
v.build.all


# set new default db connection (to SQLite default)
# set new default db connection (from DBF to new SQLite default)
db.connect -d
db.connect -d



Revision as of 10:52, 12 February 2013

Convert automatically all GRASS 6 vector maps to GRASS 7 (including attribute transfer from DBF to SQLite)

To become usable in GRASS 7, all vector maps in a mapset need to be updated to the improved vector file format (i.e., rebuild the topology with v.build.all along with the change to the SQLite database backend (new default in GRASS 7 instead of DBF in GRASS 6, using db.connect and v.db.reconnect.all).

Run this in GRASS 7:

# first rebuild topology for all vector maps
v.build.all

# set new default db connection (from DBF to new SQLite default)
db.connect -d

# copy attribute tables from old DB to new SQLite DB, delete old tables in DBF format
v.db.reconnect.all -cd