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

GRASS GIS trac at osgeo.org
Wed Sep 10 06:38:19 EDT 2008


#64: ps.map: patch to set customized scalebar units
--------------------------+-------------------------------------------------
  Reporter:  alf          |       Owner:  hamish   
      Type:  enhancement  |      Status:  closed   
  Priority:  minor        |   Milestone:  6.4.0    
 Component:  ps.map       |     Version:  svn-trunk
Resolution:  fixed        |    Keywords:  scalebar 
  Platform:  All          |         Cpu:  All      
--------------------------+-------------------------------------------------
Changes (by hamish):

  * status:  assigned => closed
  * resolution:  => fixed

Comment:

 Hi,

 I have now added a new "units" instruction to the ps.map scalebar.
 Everything should be obvious and automatic.
 You get a nice label too.


 usage:
   units      auto|meters|kilometers|feet|miles|nautmiles

 the default is auto in which case it grabs the units label from
 PROJ_UNITS.


 example:

 {{{
 # spearfish dataset
 ps.map out=test.ps << EOF
 raster elevation.dem
 scalebar f
   length 4
   units nautmiles
   height 0.15
   where 3 7
   end
 grid 1852
   end
 end
 EOF
 }}}


 thanks to Alessandro Frigeri for figuring out the label placement.


 Hamish

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


More information about the grass-dev mailing list