[GRASS-user] r.mapcalc-problem

Markus Neteler neteler at osgeo.org
Fri Mar 13 03:22:41 EDT 2009


On Thu, Mar 12, 2009 at 10:38 PM, Helmut Kudrnovsky <hellik at web.de> wrote:
> hi,
>
> i test a little bit the examples in
>
> http://skagit.meas.ncsu.edu/~helena/grasswork/grassbookdat07/ncexternal/grasstestrast.txt
>
> on grass64 from osgeo4w on a Win Vista 32 box.
>
> I copy simply the command from the file above in the command line of the wx-gui
>
> first example:
>
> # find developed areas close to lakes
> r.buffer lakes out=lakes_buff dist=60,120,240,500 --o
> d.rast lakes_buff
> r.mapcalc "developed_lake=if(landuse96_28m==1 || landuse96_28m==2, lakes_buff, null())"
> d.rast developed_lake
> d.vect streets_wake co=grey
> d.rast -o lakes
>
> following error message for the r.mapcalc-command:
>
> (Thu Mar 12 22:32:47 2009)
> r.mapcalc "developed_lake=if(landuse96_28m==1 || landuse96_28m==2, lakes_buff, null())"
> syntax error, unexpected $end, expecting '='
> Parse error
> (Thu Mar 12 22:32:48 2009) Command finished (0 sec)


I get the same on Linux. Apparently something in the GUI
is eating some characters of the formula.

I have opened a ticket for this:
http://trac.osgeo.org/grass/ticket/528

Markus


> second example:
>
> r.mapcalc "streets_travtime=1./streets_speed"
> r.info streets_travtime
>
> following error message for the r.mapcalc-command:
>
> (Thu Mar 12 22:34:39 2009)
> r.mapcalc "streets_travtime=1./streets_speed"
> syntax error, unexpected $end, expecting '='
> Parse error
> (Thu Mar 12 22:34:39 2009) Command finished (0 sec)
>
>
> best regards
> helli
> _______________________________________________________________________
> DSL zum Nulltarif + 20 Euro Extraprämie bei Online-Bestellung über die
> DSL Freundschaftswerbung! http://dsl.web.de/?ac=OM.AD.AD008K15279B7069a
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>


More information about the grass-user mailing list