[GRASS-dev] [GRASS GIS] #2001: wxGUI: traceback when using alternate projection for map display coords

GRASS GIS trac at osgeo.org
Sat Jun 8 18:21:27 PDT 2013


#2001: wxGUI: traceback when using alternate projection for map display coords
--------------------------------------+-------------------------------------
 Reporter:  hamish                    |       Owner:  grass-dev@…              
     Type:  defect                    |      Status:  new                      
 Priority:  normal                    |   Milestone:  6.4.3                    
Component:  wxGUI                     |     Version:  svn-releasebranch64      
 Keywords:  map display, coordinates  |    Platform:  Linux                    
      Cpu:  x86-64                    |  
--------------------------------------+-------------------------------------
 Hi,

 I noticed a bug in the way that the EPSG codes are loaded in the wxGUI
 preferences which leads to a traceback error when you use the projected
 coordinates setting from the map display lower toolbar.

 The trouble is that when you press the "Load EPSG codes" button it adds
 (or rather does not remove) the "<>" from the end of the line. Often you
 don't notice that since the line is long and off the edge of the text box.

 If you press Enter in the epsg code above that gets stripped off, but if
 you don't it gets saved to the ~/.grass6/wx preferences file.

 to reproduce:

 start the gui, load+display a map, settings -> preferences -> projection
 tab

 click the "Load EPSG codes" button then look at the end of the +proj4
 string. If you save it like that you get the breakage. If you go up a line
 to the epsg code and press Enter the <> gets stripped off.

 (then in the map display window lower toolbar do: Coodinates -> Projection
 -> tick the box in the bottom left -> then back to Coordinates in the
 lower toolbar drop down menu)


 thanks,
 Hamish

 ps- for me it was a random default epsg code loaded*, maybe default it to
 4326 after the EPSG file is loaded, if it began as set to None?
 (*spearfish to australian utm)

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



More information about the grass-dev mailing list