[GRASS-dev] [GRASS GIS] #1305: WXGUI raster map calculator should quote map names

GRASS GIS trac at osgeo.org
Fri Mar 11 04:28:28 EST 2011


#1305: WXGUI raster map calculator should quote map names
-------------------------+--------------------------------------------------
 Reporter:  marisn       |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  minor        |   Milestone:  6.4.1                    
Component:  wxGUI        |     Version:  6.4.1 RCs                
 Keywords:               |    Platform:  Unspecified              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------
 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 at 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 at SRTM-srtm-reljefs@SRTM
 Invalid map <reljefs at 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 at SRTM"-"srtm-reljefs at 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 at SRTM"-"srtm-reljefs at SRTM"
 (Fri Mar 11 11:27:30 2011) Command finished (2 sec)
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1305>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list