[GRASS-dev] [GRASS GIS] #3017: support for background option for grid labels in d.grid

GRASS GIS trac at osgeo.org
Mon May 30 09:48:59 PDT 2016

#3017: support for background option for grid labels in d.grid
  Reporter:  veroandreo   |      Owner:  grass-dev@…
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Milestone:  7.3.0
 Component:  Display      |    Version:  unspecified
Resolution:               |   Keywords:  d.grid, gsoc2016, cartography
       CPU:  Unspecified  |   Platform:  Unspecified

Comment (by annakrat):

 Replying to [comment:3 lazaa]:
 > Replying to [comment:2 annakrat]:
 > > Thanks for the patch, but I am getting weird results (see attachment).
 It's possible I might have done something wrong when applying the patch,
 because I needed to get rid of the whitespace changes. Could you please
 check this?
 > >
 > > Also `bg_color` should be probably changed to `bgcolor` to be
 compatible with all other modules having this option.
 > >
 > > Ideally please upload a new patch without the whitespace changes.
 > OK, I will change it to {{{bgcolor}}}. I think the problem is not in
 whitespaces. The size of label background depends on the font size. I
 tested it on several font sizes and I got good results but obviously it
 doesn't work in general.

 It seems to change with zoom level, so I think you have to somehow convert
 between the pixel and geographic coordinates.

Ticket URL: <https://trac.osgeo.org/grass/ticket/3017#comment:4>
GRASS GIS <https://grass.osgeo.org>

More information about the grass-dev mailing list