浏览代码

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 16 年之前
父节点
当前提交
dd48a4a5ba
共有 1 个文件被更改,包括 2 次插入1 次删除
  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:")