[GRASS-dev] [GRASS GIS] #678: wxgui digitizer: wrong coordinates after zoom to named region

#678: wxgui digitizer: wrong coordinates after zoom to named region
------------------------------------------+---------------------------------
Reporter: mlennert | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Keywords: wxgui digitizer named region | Platform: Linux
      Cpu: Unspecified |
------------------------------------------+---------------------------------
Using the wxGUI digitizer, I have observed the following problem:

- launch digitalisation of a new vector map
- zoom to named region
- digitize feature
- feature is placed at wrong location, i.e. not in the area visible in the
screen.

I can produce this with nc_spm_06 dataset:

- create named region with:

North: 223800
South: 222810
West: 635560
East: 637070

- launch wxgui digitizer and create new vector map
- zoom to named region created above
- draw a line across the screen

The line seems to disappear, but by zooming out you can see that it is
placed elsewhere. It's bounding box as given by v.info is:

N: 222110
S: 221279
E: 637424
W: 637342

When I do not use a named region, but zoom by hand to the same area, I do
not see the same problem.

Moritz

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

#678: wrong coordinates after zoom to named region
-----------------------+----------------------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: assigned
  Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Resolution: | Keywords: named region
  Platform: Linux | Cpu: Unspecified
-----------------------+----------------------------------------------------
Changes (by martinl):

* cc: grass-dev@lists.osgeo.org (added)
  * keywords: wxgui digitizer named region => named region
  * status: new => assigned
  * owner: grass-dev@lists.osgeo.org => martinl
  * summary: wxgui digitizer: wrong coordinates after zoom to named region
              => wrong coordinates after zoom to named region

Comment:

The bug is not related to the vector digitizer. Hopefully fixed in r38317.

Martin

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

#678: wrong coordinates after zoom to named region
-----------------------+----------------------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: assigned
  Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Resolution: | Keywords: named region
  Platform: Linux | Cpu: Unspecified
-----------------------+----------------------------------------------------
Comment (by mlennert):

Replying to [comment:1 martinl]:
> The bug is not related to the vector digitizer.

No, apprently not, but it is easy to see there.

> Hopefully fixed in r38317.

No, behaviour is different, but still weird:

- zoom to named region
- draw line : line ends seem to jump to outside the current window
- zoom to current region: line is drawn somewhere else on the screen and
much longer than it should be
- zoom back to named region: line jumps back to normal length and more or
less correct position.
- zoom back to current region: line again jumps to other location and
longer size
- zoom by hand (with zoom box) after zoom to current region: zooms in but
to a different area than the one indicated by the zoom box.

Something seems fundamentally wrong with the zoom management...

Moritz

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

#678: wrong coordinates after zoom to named region
-----------------------+----------------------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: assigned
  Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Resolution: | Keywords: named region
  Platform: Linux | Cpu: Unspecified
-----------------------+----------------------------------------------------
Comment (by martinl):

Replying to [comment:2 mlennert]:
> No, behaviour is different, but still weird:
>
> - zoom to named region
> - draw line : line ends seem to jump to outside the current window

seems to work for me, tested on relbr64 and trunk. What version, revision?

Martin

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

#678: wrong coordinates after zoom to named region
-----------------------+----------------------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: assigned
  Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Resolution: | Keywords: named region
  Platform: Linux | Cpu: Unspecified
-----------------------+----------------------------------------------------
Comment (by martinl):

Replying to [comment:3 martinl]:
> Replying to [comment:2 mlennert]:
> > No, behaviour is different, but still weird:
> >
> > - zoom to named region
> > - draw line : line ends seem to jump to outside the current window
>
> seems to work for me, tested on relbr64 and trunk. What version,
revision?

still relevant?

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

#678: wrong coordinates after zoom to named region
-----------------------+----------------------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Resolution: fixed | Keywords: named region
  Platform: Linux | Cpu: Unspecified
-----------------------+----------------------------------------------------
Changes (by mlennert):

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

Comment:

Replying to [comment:4 martinl]:
> Replying to [comment:3 martinl]:
> > Replying to [comment:2 mlennert]:
> > > No, behaviour is different, but still weird:
> > >
> > > - zoom to named region
> > > - draw line : line ends seem to jump to outside the current window
> >
> > seems to work for me, tested on relbr64 and trunk. What version,
revision?
>
> still relevant?

Can't reproduce on fresh relbr64 on Ubuntu (also just updated from
Intrepid to Jaunty, don't know if this might have solved it...). Will
close for now.

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