#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)
#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 |
--------------------------------------+-------------------------------------
Comment(by hamish):
Replying to [comment:1 annakrat]:
> Try r56690-2 in all branches.
tested in 6.4svn, working well thanks.
two little things noticed:
- is it easy to change the mouse cursor to an hourglass then back to a
pointer while the epsg file is loading? or grey-out then re-activate the
+proj4 and epsg code text boxes while it is loading? (some sort of
feedback that something is happening since it takes ~5 seconds)
- I'm not sure how much use the drop down menu really is since it is so
long (maybe better a spinbox?) but right now for me it is unsorted (~
backwards read?), so not so very easy to pick the one you want even if you
know the number.
#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 |
--------------------------------------+-------------------------------------
Comment(by annakrat):
Replying to [comment:2 hamish]:
>
> two little things noticed:
>
> - is it easy to change the mouse cursor to an hourglass then back to a
pointer while the epsg file is loading? or grey-out then re-activate the
+proj4 and epsg code text boxes while it is loading? (some sort of
feedback that something is happening since it takes ~5 seconds)
> - I'm not sure how much use the drop down menu really is since it is so
long (maybe better a spinbox?) but right now for me it is unsorted (~
backwards read?), so not so very easy to pick the one you want even if you
know the number.
>
Both should be fixed (busy cursor added, list sorted). Just to note, the
slowest part is actually adding the items to the combo box, not reading.
There is probably nothing we can do about it as long as we use this
widget.