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

#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@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)
}}}

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

#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: raster calculator | Platform: Unspecified
      Cpu: Unspecified |
-------------------------------+--------------------------------------------
Changes (by martinl):

  * keywords: => raster calculator

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1305#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1305: WXGUI raster map calculator should quote map names
------------------------------------------+---------------------------------
Reporter: marisn | Owner: grass-dev@…
     Type: defect | Status: new
Priority: minor | Milestone: 6.4.3
Component: wxGUI | Version: 6.4.2 RCs
Keywords: raster calculator, r.mapcalc | Platform: All
      Cpu: All |
------------------------------------------+---------------------------------
Changes (by hamish):

  * keywords: raster calculator => raster calculator, r.mapcalc
  * platform: Unspecified => All
  * version: 6.4.1 RCs => 6.4.2 RCs
  * cpu: Unspecified => All
  * milestone: 6.4.1 => 6.4.3

Comment:

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

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1305#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1305: WXGUI raster map calculator should quote map names
---------------------+------------------------------------------------------
  Reporter: marisn | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: minor | Milestone: 6.4.3
Component: wxGUI | Version: 6.4.2 RCs
Resolution: fixed | Keywords: raster calculator, r.mapcalc
  Platform: All | Cpu: All
---------------------+------------------------------------------------------
Changes (by annakrat):

  * status: new => closed
  * resolution: => fixed

Comment:

Should be fixed in r52807, r52808, r52809.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1305#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>