[GRASS-dev] [bug #4368] (grass) g.parser: pass through --o

Glynn Clements glynn at gclements.plus.com
Mon May 15 04:29:14 EDT 2006


Hamish wrote:

> It should be listed in the help pages as --overwrite. "--o" is just a
> shortcut that works, like,
>   v.clean in=foo out=foo2*
> instead of full input= and output=. Or omitting the first option name.
> 
> [*] using the same map name for both in= and out= with --o is bad, yes?

It depends.

The actual data file (cell/fcell) for a raster map is created in the
temporary directory, then renamed when the map is closed (with
G_close_cell()), so that case will work.

Files which are read into or written from memory in one go (e.g. 
colour tables, range, history, etc) aren't a problem.

Anything which has separate open, read/write, and close operations
(and which doesn't explicitly allow for this situation) will be
problematic.

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




More information about the grass-dev mailing list