[GRASS-dev] [GRASS GIS] #195: -g flag in r.proj/v.proj for easily-parsable output for use in scripts

GRASS GIS trac at osgeo.org
Tue Jun 24 09:04:25 EDT 2008


#195: -g flag in r.proj/v.proj for easily-parsable output for use in scripts
-------------------------------------------+--------------------------------
 Reporter:  epatton                        |       Owner:  grass-dev at lists.osgeo.org
     Type:  enhancement                    |      Status:  new                      
 Priority:  trivial                        |   Milestone:  6.4.0                    
Component:  Raster                         |     Version:  svn-trunk                
 Keywords:  r.proj, output, print, script  |    Platform:  Linux                    
      Cpu:  x86-64                         |  
-------------------------------------------+--------------------------------
 Hi,

 Currently r.proj -l spits out a tab-separated list of rasters; I would
 like to request a -g flag to print out rasters (and vectors with v.proj)
 one per line so it's easily parsable in one-liner scripts a la:
 {{{
 for MAP in `r.proj -g location=spearfish mapset=PERMANENT` ; do
 r.proj $MAP ...etc.
 }}}

 Thanks,

 ~ Eric.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/195>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list