[GRASS-user] Re: v.to.rast in a python loop, error

2012-02-13 Thread Margherita Di Leo
Hi, Have you tried adding flags = '-o' as an argument to grass.run_command? That will overwrite the output raster if it already exists. Actually, it will raise a ScriptError if you're running anything later than 6.4.1. If you want to pass the --overwrite flag to the module,

[GRASS-user] Re: v.to.rast in a python loop, error

2012-02-13 Thread Johannes Radinger
Hi, Original-Nachricht Datum: Mon, 13 Feb 2012 12:20:18 +0100 Von: Margherita Di Leo direg...@gmail.com An: grass-user@lists.osgeo.org, jradin...@gmx.at, gl...@gclements.plus.com, scott.sinclair...@gmail.com Betreff: Re: v.to.rast in a python loop, error Hi,