Opened 13 years ago

Closed 12 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

Description

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 by martinl, 13 years ago

Keywords: raster calculator added

comment:2 by hamish, 12 years ago

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

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

Hamish

comment:3 by annakrat, 12 years ago

Resolution: fixed
Status: newclosed

Should be fixed in r52807, r52808, r52809.

Note: See TracTickets for help on using tickets.