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 <[EMAIL PROTECTED]> _______________________________________________ grassgui mailing list [email protected] http://grass.itc.it/mailman/listinfo/grassgui
