[GRASS-dev] Parser checking output maps but not input maps

Glynn Clements glynn at gclements.plus.com
Sat Jul 4 09:55:26 PDT 2015


Vaclav Petras wrote:

> is there some reason for GRASS parser not checking if the input map exists?
> It checks if the output map exists and if it it does it ends execution with
> an error.

If an input map (or file) doesn't exist, you'll get an error when the
module tries to open it.

If an output map exists, it would just get silently overwritten if it
wasn't for the checks performed by G_parser().

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list