[GRASS-dev] [GRASS GIS] #2848: g.gui.vdigit: snapping distance seems to only be defined in map units, not screen pixels

GRASS GIS trac at osgeo.org
Mon Sep 26 22:52:55 PDT 2016


#2848: g.gui.vdigit: snapping distance seems to only be defined in map units, not
screen pixels
--------------------------+---------------------------------
  Reporter:  mlennert     |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  major        |  Milestone:  7.0.5
 Component:  wxGUI        |    Version:  svn-releasebranch70
Resolution:               |   Keywords:  vector, digitize
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+---------------------------------

Comment (by mlennert):

 Replying to [comment:12 annakrat]:
 > OK, try r69580. First remove the snapping record in your settings file.
 Save it in trunk, and now open the dialog in older GRASS. Save it and open
 it again in trunk. If there are no problems, I will backport it.

 This seems to work, except: when I chose map units in trunk, I get the
 following in the settings file:


 {{{
 vdigit;snapping;units;screen pixels;value;25;unit;1
 }}}

 which looks a bit contradictory ('unit: 1' should be 'units: map units',
 or ?).

 When I open this in grass70, I get values corresponding to 25 pixels,
 although the drop-down list status does not show any choice. When I then
 choose pixels, I first get 25 pixels = 25 meters, but when I change the
 number of pixels, the meter info is correct again.

 Trying to save from grass70, nothing is saved to the settings file if I
 choose map units. Choosing screen pixels, I only get:

 {{{
 vdigit;snapping;
 }}}

 in the settings file.

 When I then open trunk, it gives me the default settings of 10 screen
 pixels.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2848#comment:13>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list