[GRASS-dev] [GRASS GIS] #1412: Different problem with scalebar in GRASS 6.5

#1412: Different problem with scalebar in GRASS 6.5
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
The north arrow in GRASS 6.5 looks OK and is not multiple (as I just
reported as a problem in GRASS 7 (trac #1410).

BUT, once you've added a scale bar or north arrow, you cannot change it.
Neither double clicking or nor trying to access the dialog called from the
toolbar will access it. These both generate the following error:

{{{
Traceback (most recent call last):
   File "/Users/Shared/grass_dev/grass65_dev/dist.i386-apple-
darwin10.8.0/etc/wxpython/gui_modules/mapdisp_window.py",
line 1025, in MouseActions

self.OnButtonDClick(event)
   File "/Users/Shared/grass_dev/grass65_dev/dist.i386-apple-
darwin10.8.0/etc/wxpython/gui_modules/mapdisp_window.py",
line 1300, in OnButtonDClick

self.parent.OnAddBarscale(None)
   File "/Users/Shared/grass_dev/grass65_dev/dist.i386-apple-
darwin10.8.0/etc/wxpython/gui_modules/mapdisp.py", line
1761, in OnAddBarscale

ctrltxt = _("scale object"))
   File "/Users/Shared/grass_dev/grass65_dev/dist.i386-apple-
darwin10.8.0/etc/wxpython/gui_modules/gdialogs.py", line
496, in __init__

mapName, found = utils.GetLayerNameFromCmd(self.parent.MapWi
ndow.overlays[self.ovlId]['cmd'])
   File "/Users/Shared/grass_dev/grass65_dev/dist.i386-apple-
darwin10.8.0/etc/wxpython/gui_modules/utils.py", line 160,
in GetLayerNameFromCmd

maps.append(dcmd[i].split('=', 1)[1])
IndexError
:
list index out of range

}}}

Michael

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

#1412: Different problem with scalebar in GRASS 6.5
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by martinl):

Are you using fresh compilation from SVN? I am not able to reproduce this
behaviour with G65.

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

#1412: Different problem with scalebar in GRASS 6.5
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Keywords: barscale | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Changes (by martinl):

  * keywords: => barscale

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

#1412: Different problem with scalebar in GRASS 6.5
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Keywords: barscale | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by cmbarton):

Just compiled an hour ago r47252

Michael

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

#1412: Different problem with scalebar in GRASS 6.5
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Keywords: barscale | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by cmbarton):

The scale bar in the GUI works fine in 6.4.2svn r47214.

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

#1412: Different problem with scalebar in GRASS 6.5
--------------------------+-------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: major | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: invalid | Keywords: barscale
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by cmbarton):

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

Comment:

I rebooted my machine, restarted GRASS, and this error does not seem to be
happening any more. (the others reported yesterday still do, and do so on
my desktop too). I will close since Martin cannot reproduce and it has
magically disappeared from my box too.

Michael

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

#1412: Different problem with scalebar in GRASS 6.5
--------------------------+-------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: major | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: invalid | Keywords: barscale
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------

Comment(by annakrat):

It's weird, I still get this error and I tried to fix it (5 min ago, I
didn't noticed you closed it). The problem appears when the option north
arrow only is checked. I have just commited the patch in G7 (the same
error as G65). Please try it.

Anna

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

#1412: Different problem with scalebar in GRASS 6.5
--------------------------+-------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: major | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: invalid | Keywords: barscale
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------

Comment(by cmbarton):

Did you find out why G7 is displaying 3 N. arrows in a horizontal row,
with no fill on one of them?

Michael

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

#1412: Different problem with scalebar in GRASS 6.5
--------------------------+-------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: major | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: invalid | Keywords: barscale
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------

Comment(by annakrat):

Replying to [comment:7 cmbarton]:
> Did you find out why G7 is displaying 3 N. arrows in a horizontal row,
with no fill on one of them?

No, but I guess it's problem with d.barscale and not wxGUI.

Anna

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

#1412: Different problem with scalebar in GRASS 6.5
--------------------------+-------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: major | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: invalid | Keywords: barscale
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------

Comment(by cmbarton):

It seems to be only a problem with latlon locations. I just tested the
other issue (not keeping settings and raising an error), and it seems like
you've fixed it.

So it seems like there were 2 different issues in 2 different GRASS
systems. You've fixed the wxGUI one, but the other one remains and is
likely to be in d.barscale. So I will indicate this for trac #1410. We can
keep this closed this I believe.

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