Difference between revisions of "Convert all GRASS 6 vector maps to GRASS 7"

From GRASS-Wiki
Jump to: navigation, search
(new)
 
m
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 db to new db, delete old tables in DBF format
+
# 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 00: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