[GRASS-dev] Re: [GRASS GIS] #340: d.labels doesn't place labels exactly on coordinate point in label file.

GRASS GIS trac at osgeo.org
Mon Oct 20 05:03:07 EDT 2008


#340: d.labels doesn't place labels exactly on coordinate point in label file.
--------------------------+-------------------------------------------------
  Reporter:  wolf         |       Owner:  hamish          
      Type:  enhancement  |      Status:  assigned        
  Priority:  minor        |   Milestone:  6.4.0           
 Component:  default      |     Version:  svn-develbranch6
Resolution:               |    Keywords:                  
  Platform:  All          |         Cpu:  Unspecified     
--------------------------+-------------------------------------------------
Comment (by hamish):

 do I have this right?

 d.labels: patch skips adjustments for dealing with multi-line labels
 (desired?), and puts bottom left corner of text box at the exact
 coordinate.

 like:
 {{{
   _____________
  .|_text here_|

 }}}


 ps.map: just like LOWER,LEFT placement but without any X,Y_just_offset
 which keeps the label off of the symbol.


 I would prefer, in this order:
  - use ref: center,center as the basis for offsets
  - ref: bottom_0,left_0 instead of none,none to indicate where + no
 padding.

 If it can be done with "ref: center,center" I'd be a lot happier.


 some other points:
  - I would not move the above rendering offsets into v.label.
  - From the user's perspective I'd think they'd expect SA placement to be
 an optional flag of v.label. Codewise that may be harder, but I am just
 speaking about what a user might expect and long term goals.
  - I do not have plans to replace v.label with v.label.sa. For one thing
 v.label has had some fixes after v.label.sa forked which AFAIK have not
 been ported (mostly to do with correctly handling rotation). I suspect
 there are a few other small things.
  - v.label does not sort smallest label on top, nor (by default) IMO
 should it. Fine for SA, but isn't the whole point of SA that they not
 overlap in the first place, so not an issue?. See related filled-area
 "v.bubbleplot" for/against discussions to sort points to put smallest
 circles on top.


 Hamish

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


More information about the grass-dev mailing list