[GRASS-user] pygrass v.to.db

Martin Landa landa.martin at gmail.com
Tue Oct 21 15:31:53 PDT 2014


Hi,

how to call in pygrass modules like `v.to.db`?

"""
from grass.pygrass.modules.shortcuts import vector as v

v.to.db(map='p5', option='area', column='vymera_ha', units='hectares')
"""

fails

  File "/opt/src/grass70_release/dist.x86_64-unknown-linux-gnu/etc/python/grass/pygrass/modules/interface/module.py",
line 289, in __init__
    raise GrassError(str_err % self.name)
grass.pygrass.errors.GrassError: u'Error running: `v.db
--interface-description`.'

Thanks, Martin

-- 
Martin Landa * http://geo.fsv.cvut.cz/gwiki/Landa


More information about the grass-user mailing list