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

Scott Sinclair scott.sinclair.za at gmail.com
Fri Feb 10 01:00:49 EST 2012


On 10 February 2012 03:22,  <glynn at gclements.plus.com> wrote:
>
> Scott Sinclair wrote:
>
>> 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,
> you should pass overwrite=True to run_command() etc.

Thanks - I haven't used anything later than 6.4.1. Good to know.

Cheers,
Scott


More information about the grass-user mailing list