Ah, yes, sorry for my wrong answer.. too much in R mode (where one would
write it as I mentioned).
It is mentioned here:
https://grasswiki.osgeo.org/wiki/GRASS_Python_Scripting_Library , but not
in a very explicit way I have to say.
On Tue, Apr 5, 2016 at 9:11 AM, Leonardo Hardtke
Thanks Paulo and Sören for helping!
overwrite=True made the trick! Is this documented somewhere and I just
missed it??? Or should I fill a ticket?
Leo
2016-04-05 17:06 GMT+10:00 Sören Gebbert :
> Please try gscript.mapcalc(expr... , overwrite=True)
> Am
Please try gscript.mapcalc(expr... , overwrite=True)
Am 05.04.2016 09:02 schrieb "Leonardo Hardtke" :
> Hi Paulo and thanks for the answer... but It gives me a very similar error
> if I write the full flag (The only difference is TypeError... str if I
> use 'o' and int
Hi Paulo and thanks for the answer... but It gives me a very similar error
if I write the full flag (The only difference is TypeError... str if I
use 'o' and int if I use 'overwrite' )
gscript.mapcalc('endmember_rstr.1 = null()', flags="overwrite")
ERROR: output map exists. To
On 05-04-16 08:53, Leonardo Hardtke wrote:
Dear users,
I am writing a script and I'm having problems with the flags for mapcalc
gscript.mapcalc('endmember_rstr.1 = null()', flags="o")
If you are using GRASS 7.+, the overwrite flag should be written in
full, i.e.,
Dear users,
I am writing a script and I'm having problems with the flags for mapcalc
gscript.mapcalc('endmember_rstr.1 = null()', flags="o")
ERROR: output map exists. To overwrite, use the
--overwrite flag
Traceback (most recent call last):
File "", line 1, in
File