[GRASS-dev] [GRASS-SVN] r52301 - grass/branches/develbranch_6/lib/python

2012/7/4 <svn_grass@osgeo.org>:

Author: hamish
Date: 2012-07-04 03:52:22 -0700 (Wed, 04 Jul 2012)
New Revision: 52301

Modified:
   grass/branches/develbranch_6/lib/python/raster.py
Log:
backport mapcalc_start() from trunk

[...]

+
+ return start_command('r.mapcalc', expression = e,
+ quiet = quiet,
+ verbose = verbose,
+ overwrite = overwrite)

this will not work in G6 (r.mapcalc doesn't use parser)

g.mapcalc_start('x=1')

D1/1: grass.script.core.start_command(): r.mapcalc expression=x=1

Result is always raster map called 'expression'.

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

> Author: hamish
> Date: 2012-07-04 03:52:22 -0700 (Wed, 04 Jul 2012)
> New Revision: 52301
> Modified:
grass/branches/develbranch_6/lib/python/raster.py
> Log:
> backport mapcalc_start() from trunk

Martin:

this will not work in G6 (r.mapcalc doesn't use parser)

...

Result is always raster map called 'expression'.

oops, should be fixed in r52305.

Hamish