[GRASS-dev] [GRASS GIS] #2286: Duplicate calls to d.rast when using wx monitor and d.rast command line

GRASS GIS trac at osgeo.org
Mon May 12 20:35:20 PDT 2014


#2286: Duplicate calls to d.rast when using wx monitor and d.rast command line
---------------------+------------------------------------------------------
 Reporter:  hcho     |       Owner:  grass-dev@…              
     Type:  defect   |      Status:  new                      
 Priority:  major    |   Milestone:  7.0.0                    
Component:  Display  |     Version:  svn-trunk                
 Keywords:  d.mon    |    Platform:  Linux                    
      Cpu:  x86-64   |  
---------------------+------------------------------------------------------

Comment(by hcho):

 Ugly hack:
 {{{
 d.mon wx0
 echo "d.rast elev" > `g.gisenv MONITOR_WX0_CMDFILE`
 }}}

 or for multiple raster maps:
 {{{
 #!/bin/sh
 maps=`g.mlist rast pattern="n[0-9]*w[0-9]*_1" sep=,`
 g.region rast=$maps res=00:01:00
 d.erase
 monitor=`g.gisenv MONITOR`
 cmdfile=`g.gisenv MONITOR_${monitor}_CMDFILE`
 (
 for i in `echo $maps | sed 's/,/ /g'`
 do
         echo d.rast $i
 done
 ) > $cmdfile
 }}}

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



More information about the grass-dev mailing list