[GRASSGUI] Re: grassgui Digest, Vol 4, Issue 6

Glynn Clements glynn at gclements.plus.com
Sun Jun 10 16:51:16 EDT 2007


Michael Barton wrote:

> > r.recode input=[map] output=[map] rules="`echo $rules`"
> > 
> > However, a long list of rules could easily overflow the maximum length
> > of a command line (which may be as low as 1Kb on some platforms).
> 
> If that is a potential problem, then the tempfile solution is easy enough,
> especially if a rules=[file] could be added to r.reclass and r.recode
> (already exists for v.reclass and r.colors)

If the GUI is explicitly calling r.recode (etc), using a pipe and
stdin is simpler than creating a tempfile.

An explicit file= option is useful primarily for the generic dialogs,
where the user cannot (currently) choose to redirect stdin from a file
(and even if that functionality is added, a specific file= option is
likely to be more intuitive).

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




More information about the grass-gui mailing list