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

GRASS GIS trac at osgeo.org
Mon Sep 1 23:08:20 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:  ps.map       |     Version:  svn-trunk
Resolution:               |    Keywords:  scalebar 
  Platform:  All          |         Cpu:  All      
--------------------------+-------------------------------------------------
Comment (by hamish):

 Replying to [comment:6 mlennert]:
 > In the case of the scalebar, I would like to keep the possibility
 > to decide the units by myself.

 I agree it would be useful.

 > It's the classical power vs usability problem, but I think
 > imposing units on the user is not the solution either.

 Right.

 > Maybe a solution would be to apply the suggested patch now,
 > leaving the door open for a 'scaleunits auto' option or
 > something like this...

 The trouble with that is that it is not nice to rescind commands
 later after people have started to write scripts using the new command.

 I think the solution will be to add a "units" instruction with the
 default as auto. That leaves the door open for us to let this evolve at
 little. Besides auto that we'd add meters, kilometers, feet,
 miles, nautmiles (r.buffer opts). I do not know if it is noticeable
 to bother with feet versus survey feet for a scalebar. For
 correctness I suppose we should. All the GIS lib functions for that
 are in place so it is not so hard to do it.

 Auto would switch meters->km etc. at set breakpoints, the same as gis.m's
 profile tool, nviz's scalebar, d.barscale.


 > In any case, I have attached a patch that should work with the
 > current grass7 trunk.

 thanks for that. I'll try and get some work done on ps.map in the
 next days.


 Hamish

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


More information about the grass-dev mailing list