[GRASS-dev] Re: [GRASS GIS] #64: ps.map: patch to set customized scalebar units

GRASS GIS trac at osgeo.org
Fri May 2 11:48:14 EDT 2008


#64: ps.map: patch to set customized scalebar units
--------------------------+-------------------------------------------------
  Reporter:  alf          |       Owner:  hamish   
      Type:  enhancement  |      Status:  assigned 
  Priority:  minor        |   Milestone:  6.4.0    
 Component:  default      |     Version:  svn-trunk
Resolution:               |    Keywords:           
--------------------------+-------------------------------------------------
Comment (by perk):

 I made two changes to this patch.  First, `background` did not
 affect the units label. I fixed that. Second, I had trouble with
 getting labels with like "400.000", which I suspected is
 `nice_number()` trying to represent something like
 "400.00000091". To fix this, I modified `nice_number()` to round the
 number to 3 decimal places (the maximum it uses anyway) before it does
 anything else.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/64#comment:2>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list