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

glynn at gclements.plus.com glynn at gclements.plus.com
Thu Feb 9 20:22:52 EST 2012

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.

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-user mailing list