Nikos Alexandris wrote:
> Try this:
> r.mapcalc river="if(river==$old, $new, null())"
Note that this won't work in 7.0, where r.mapcalc uses the parser. It
will complain that r.mapcalc doesn't have a river=... option.
For portability, always:
1. quote the entire expression, and
2. insert a space before the first = sign, e.g.:
r.mapcalc "river = if(river==$old, $new, null())"
This will work with all versions of r.mapcalc.
--
Glynn Clements <[email protected]>
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user