Opened 10 years ago

Closed 9 years ago

#1305 closed defect (fixed)

WXGUI raster map calculator should quote map names

Reported by: marisn Owned by: grass-dev@…
Priority: minor Milestone: 6.4.3
Component: wxGUI Version: 6.4.2 RCs
Keywords: raster calculator, r.mapcalc Cc:
CPU: All Platform: All


Create a map with - in it's name (it's legal map name). Use it in r.mapcalc from WXGUI mapcalculator (use dropdown list to select it). Wrapping map names in "" fixes issue:

(Fri Mar 11 11:18:08 2011)                                                      
r.mapcalc srtm-rst = srtm@SRTM-reljefs_rst@SRTM                                 
syntax error, unexpected '-', expecting '='
Parse error
(Fri Mar 11 11:18:10 2011) Command finished (1 sec)                             
(Fri Mar 11 11:20:34 2011)                                                      
r.mapcalc negacija = reljefs_rst@SRTM-srtm-reljefs@SRTM                         
Invalid map <reljefs@SRTM>
Parse error
(Fri Mar 11 11:20:35 2011) Command finished (1 sec)                             
(Fri Mar 11 11:22:29 2011)                                                      
r.mapcalc negacija = "reljefs_rst@SRTM"-"srtm-reljefs@SRTM"                     
(Fri Mar 11 11:22:31 2011) Command finished (2 sec)                             
(Fri Mar 11 11:27:28 2011)                                                      
r.mapcalc "negacija-smegacija" = "reljefs_rst@SRTM"-"srtm-reljefs@SRTM"         
(Fri Mar 11 11:27:30 2011) Command finished (2 sec)                             

Change History (3)

comment:1 Changed 10 years ago by martinl

Keywords: raster calculator added

comment:2 Changed 9 years ago by hamish

CPU: UnspecifiedAll
Keywords: r.mapcalc added
Platform: UnspecifiedAll
Version: 6.4.1 RCs6.4.2 RCs

still fails. tested on both wingrass and linux, 6.5svn.


comment:3 Changed 9 years ago by annakrat

Resolution: fixed
Status: newclosed

Should be fixed in r52807, r52808, r52809.

Note: See TracTickets for help on using tickets.