[GRASS-dev] [GRASS GIS] #1014: wxgui: display labels doesn't work

#1014: wxgui: display labels doesn't work
----------------------+-----------------------------------------------------
Reporter: hamish | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Keywords: d.labels | Platform: Linux
      Cpu: x86-32 |
----------------------+-----------------------------------------------------
as reported on grass-user:

{{{
> I find the label layer I generated with v.label.
> Here I get this error message:
>
> --%<--
> Error
> Map <> not found.
> --%<--
}}}

spearfish example:

add grid or labels overlay button -> add labels -> name of label file ->
rush.lbl -> [ok]

then you get the error shown above.

see `OnAddLabels()` in wxgui.py and gui_modules/wxgui_utils.py

Hamish

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

#1014: wxgui: display labels doesn't work
---------------------+------------------------------------------------------
  Reporter: hamish | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords: d.labels
  Platform: Linux | Cpu: x86-32
---------------------+------------------------------------------------------
Comment (by epatton):

Slightly related, the order of v.label and v.label.sa (what does the 'sa'
stand for?) appear to be mixed up. Selecting 'Create optimally placed
labels' launches v.label, and vice-versa.

~ Eric.

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

#1014: wxgui: display labels doesn't work
---------------------+------------------------------------------------------
  Reporter: hamish | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords: d.labels
  Platform: Linux | Cpu: x86-32
---------------------+------------------------------------------------------
Comment (by hamish):

Replying to [comment:1 epatton]:
> Slightly related, the order of v.label and v.label.sa ... appear
> to be mixed up. Selecting 'Create optimally placed labels'
> launches v.label, and vice-versa.

still in the latest SVN? I though we fixed that some months ago.

> (what does the 'sa' stand for?)

"Simulated Annealing" http://en.wikipedia.org/wiki/Simulated_Annealing

Hamish

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

#1014: wxgui: display labels doesn't work
---------------------+------------------------------------------------------
  Reporter: hamish | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords: d.labels
  Platform: Linux | Cpu: x86-32
---------------------+------------------------------------------------------
Comment (by ttalkington):

The attached patch (wxgui_dlabels.patch) fixes this issue for me in the
latest 7.0 svn. I'm not very familiar with the specifics of the wxGUI so
this may be just a work around rather then a proper fix.

Taylor

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

#1014: wxgui: display labels doesn't work
----------------------+-----------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Keywords: d.labels | Platform: Linux
      Cpu: x86-32 |
----------------------+-----------------------------------------------------

Comment(by mlennert):

The patch proposed in this ticket works well for me. Any reasons not to
apply it ?

Moritz

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

#1014: wxgui: display labels doesn't work
----------------------+-----------------------------------------------------
Reporter: hamish | Owner: martinl
     Type: defect | Status: assigned
Priority: major | Milestone: 6.4.2
Component: wxGUI | Version: svn-develbranch6
Keywords: d.labels | Platform: Linux
      Cpu: x86-32 |
----------------------+-----------------------------------------------------
Changes (by martinl):

* cc: grass-dev@… (added)
  * owner: grass-dev@… => martinl
  * status: new => assigned
  * milestone: 6.4.0 => 6.4.2

Comment:

Replying to [comment:4 mlennert]:
> The patch proposed in this ticket works well for me. Any reasons not to
apply it ?

Applied in r48431 (backported to devbr6 and relbr64).

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

#1014: wxgui: display labels doesn't work
---------------------+------------------------------------------------------
  Reporter: hamish | Owner: martinl
      Type: defect | Status: closed
  Priority: major | Milestone: 6.4.2
Component: wxGUI | Version: svn-develbranch6
Resolution: fixed | Keywords: d.labels
  Platform: Linux | Cpu: x86-32
---------------------+------------------------------------------------------
Changes (by martinl):

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

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