[GRASS5] r.mapcalc result

Radim Blazek blazek at itc.it
Thu May 27 04:00:08 EDT 2004


On Wednesday 26 May 2004 16:50, Glynn Clements wrote:
> Names which include r.mapcalc syntatic characters (e.g. minus) have to
> be quoted, e.g.:
>
> 	r.mapcalc '"pok-1"=1'
>
> 	r.mapcalc "'pok-1'=1"
>
> 	r.mapcalc "\"pok-1\"=1"
>
> 	r.mapcalc
> 	Enter expressions, "end" when done.
> 	mapcalc> "pok-1"=1
>
> Etc.
>
> Note: the quotes must be present in the string which is passed to
> r.mapcalc; when supplying the string on the command line, you have to
> allow for the shell's processing.
>
> The list of characters which can't be used in an unquoted name
> consists of control characters, space, and the following:
>
> 	^ # @ , " ' ( ) [ ] + - * / % > < ! = & | ? : ;
>
> This is true for both map names and variable names, and is distinct
> from GRASS' own restrictions (see G_legal_filename()), which apply
> regardless of whether the name is quoted.

In r.mapcalc manual:
"Quoting result is not allowed. However, it is never necessary to quote 
 result since it is always taken to be a raster map layer name."

is the rest of the manual correct or there are other changes?

Radim




More information about the grass-dev mailing list