[GRASS-dev] Helpp needed to call Grass from inside Python Plugin

Markus Neteler neteler at osgeo.org
Tue Mar 23 16:54:40 EDT 2010


On Mon, Mar 22, 2010 at 1:28 PM, Bishwarup Banerjee
<bishwarup.banerjee at gmail.com> wrote:
> Hi All,
>
> I want to call the grass functionalities from inside my python plugins, in
> QGIS
> For example: the Grass's raster to polygon script, with out going inside the
> grass plugin.
> Can I set the Grass Mapset, and location from inside my python plugin?
> Is this possible?

I think yes. See also
http://grass.osgeo.org/wiki/GRASS_and_Python

(@all: please extend the Wiki page!)

> my configurations are:
> QGIS 0.11, GRASS 6.3, python 2.5, Windows

Note that there are substantial improvements in GRASS 6.4+ for Python.

Markus


More information about the grass-dev mailing list