[GRASS-dev] Re: [GRASS GIS] #153: ps.map: support for placement by % for decorations

GRASS GIS trac at osgeo.org
Fri Feb 4 02:33:41 EST 2011


#153: ps.map: support for placement by % for decorations
-------------------------+--------------------------------------------------
 Reporter:  hamish       |       Owner:  hamish          
     Type:  enhancement  |      Status:  assigned        
 Priority:  major        |   Milestone:  6.5.0           
Component:  Ps.map       |     Version:  svn-develbranch6
 Keywords:  ps.map       |    Platform:  All             
      Cpu:  All          |  
-------------------------+--------------------------------------------------
Changes (by hamish):

 * cc: grass-dev@… (added)
  * owner:  grass-dev@… => hamish
  * status:  new => assigned
  * priority:  minor => major


Comment:

 Hi,

 to help solve this issue for future a GUI front-end I plan on adding a -b
 flag which will take the existing ps.map input file, run it to dynamically
 place and size the map box, output the bounding box of the map box (in
 inches), and then exit without creating a map.

 output will be in the form `bbox=min_x,min_y,max_x,max_y` relative to the
 top-left corner of the paper.

 As long as the paper size is set, the GUI can then use this information
 (and possibly g.region) to switch between %, inches, cm, mm, PostScript
 points, and map units. The idea is that will be invisible to the user, all
 they do is drag the decoration to where they'd like to see it.

 IMO it is not practical or a good idea to have the python code mirror the
 C code's placement logic itself (a lot of work/code to mimic, then a lot
 of discipline to keep in sync).


 Hamish

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



More information about the grass-dev mailing list