[GRASS-dev] Help needed Accessing Grass Modules through python

Martin Landa landa.martin at gmail.com
Mon Sep 14 09:29:42 EDT 2009


2009/9/14 Bishwarup Banerjee <bishwarup.banerjee at gmail.com>:
> I am working on accessing grass functionalities through python, but I don't
> know which way I should take to achieve this goal.
> I have SWIG WIN, GRASS 6.3, Python 2.5, Quantum GIS 0.11
> I want to call suppose "mapcalc" of grass from inside python.
> Whether this is possible, If yes then how. Whether it can be achieved
> through g.parser, SWIG or through any other way.

I would suggest to use Python scripting library from GRASS >= 6.4 [1].
See raster.mapcalc().


[1] http://download.osgeo.org/grass/grass6_progman/pythonlib.html
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa

More information about the grass-dev mailing list