Opened 11 years ago

Last modified 8 years ago

#2001 new defect

wxGUI: traceback when using alternate projection for map display coords

Reported by: hamish Owned by: grass-dev@…
Priority: normal Milestone: 6.4.6
Component: wxGUI Version: svn-releasebranch64
Keywords: map display, coordinates Cc:
CPU: x86-64 Platform: Linux

Description

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)

Change History (5)

comment:1 by annakrat, 11 years ago

Try r56690-2 in all branches.

in reply to:  1 ; comment:2 by hamish, 11 years ago

Replying to 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.

thanks, Hamish

in reply to:  2 comment:3 by annakrat, 11 years ago

Replying to 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.

comment:4 by hamish, 11 years ago

Anna:

Just to note, the slowest part is actually adding the items to the combo box, not reading.

probably the drop down menu is not to useful (takes longer to find the number you know than to just type it in). use a spinbox instead?

thanks, Hamish

comment:5 by neteler, 8 years ago

Milestone: 6.4.36.4.6
Note: See TracTickets for help on using tickets.