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

GRASS GIS trac at osgeo.org
Mon May 30 14:16:02 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:5 lazaa]:

 > I uploaded new patch with original whitespaces/tabs.
 >
 > I looked how it is done in d.text module. Now is the margin of the text
 box calculated from width and height of the text inside text box.
 >
 > Another problem is that if user uses flag -g or -w. The geographical
 grid isn't horizontal/vertical so the labels are a bit rotated. But I
 couldn't find any way how to rotate the text box for filling background. I
 attached an image.

 Thank you, I committed it. I don't think the rotation is a huge problem
 here for most cases. You could look at d.labels, it can do the rotation of
 the background. But I don't think you should focus on this now.

 More testing welcome.

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



More information about the grass-dev mailing list