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

GRASS GIS trac at osgeo.org
Tue May 31 11:41:05 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 lazaa):

 Replying to [comment:9 annakrat]:
 > Replying to [comment:8 veroandreo]:
 > > Hi, I'm happy to have background option in d.grid :)
 > >
 > > I did a quick test and I attach an example below. I noted that when
 choosing white background for grid labels, I loose part of the map in the
 east (See no-transparency in fig 1 vs transparency in fig 2). So,
 background of labels seems to be a continuous white strip for Y
 coordinate, while it's fine for X coordinate.
 >
 > I can confirm this, the size of the background rectangle still needs
 fixing, the problem showed up only in latlon for me.

 I tried to find the problem, but I didn't succeed :(

 > >
 > > On the other hand, grid lines overlap the white background of labels,
 while IMHO, label should always be in front.
 >
 > Yes, the horizontal labels are fine, just the vertical ones are below
 the grid lines.

 I fixed this problem. Now the grid lines are drawn first (both vertical
 and horizontal) and after that are drawn labels so at final they are shown
 in front.

 > >
 > > I personally don't like the border tickmarks of d.grid but when
 disabling them, labels remain aligned as if there were border tickmarks
 (last fig). Maybe they could be aligned more close to the border (if not
 against it) as in ps.map.
 > >
 > > And, would that be possible to also change font of labels?? :)
 > >
 > You can do that from GUI settings - you set display font for all d.*
 commands.

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



More information about the grass-dev mailing list