Explorar el Código

v.db.addtable: add missing 'qlayer' parameter (v.to.db)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@34787 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa hace 16 años
padre
commit
dd48a4a5ba
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      scripts/v.db.addtable/v.db.addtable.py

+ 2 - 1
scripts/v.db.addtable/v.db.addtable.py

@@ -138,7 +138,8 @@ def main():
 
     # finally we have to add cats into the attribute DB to make modules such as v.what.rast happy:
     # (creates new row for each vector line):
-    grass.run_command('v.to.db', map = map, layer = layer, option = 'cat', col = 'cat')
+    grass.run_command('v.to.db', map = map, layer = layer,
+                      option = 'cat', column = 'cat', qlayer = layer)
 
     if grass.verbosity() > 0:
 	grass.message("Current attribute table links:")