Convert all GRASS 6 vector maps to GRASS 7: Difference between revisions
Jump to navigation
Jump to search
(new) |
mNo edit summary |
||
Line 6: | Line 6: | ||
<source lang="bash"> | <source lang="bash"> | ||
# first rebuild topology | # first rebuild topology for all vector maps | ||
v.build.all | v.build.all | ||
Line 12: | Line 12: | ||
db.connect -d | db.connect -d | ||
# copy attribute tables from old | # copy attribute tables from old DB to new SQLite DB, delete old tables in DBF format | ||
v.db.reconnect.all -cd | v.db.reconnect.all -cd | ||
</source> | </source> |
Revision as of 07:21, 8 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 and database management.
Run this in GRASS 7:
# first rebuild topology for all vector maps
v.build.all
# set new default db connection (to 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