[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
Tue Sep 27 07:15:53 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 annakrat):

 Replying to [comment:13 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 ?).
 >

 That's correct, 'units' is the old name kept there for backwards
 compatibility, 'unit' is the new one (0 is screen pixels, 1 is map units).

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

 It is broken in GRASS70, the point is it shouldn't give you any error
 caused by the changes in the new settings file.
 >
 > When I then open trunk, it gives me the default settings of 10 screen
 pixels.
 That's correct. So I would say it behaves as I would expect.

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



More information about the grass-dev mailing list