[GRASS-user] pygrass v.to.db

Anna Petrášová kratochanna at gmail.com
Tue Oct 21 18:26:20 PDT 2014


On Tue, Oct 21, 2014 at 6:31 PM, Martin Landa <landa.martin at gmail.com>
wrote:

> 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')
> """
>

isn't it  v.to_db?

Anna


> 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
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20141021/b0a8b520/attachment.html>


More information about the grass-user mailing list