[GRASS-dev] [GRASS GIS] #1530: g.region shrink / expand parameter

GRASS GIS trac at osgeo.org
Wed Apr 17 02:03:12 PDT 2013


#1530: g.region shrink / expand parameter
--------------------------+-------------------------------------------------
  Reporter:  alf          |       Owner:  grass-dev@…              
      Type:  enhancement  |      Status:  closed                   
  Priority:  normal       |   Milestone:  6.4.3                    
 Component:  Default      |     Version:  6.4.1                    
Resolution:  fixed        |    Keywords:  g.region, expand         
  Platform:  Unspecified  |         Cpu:  Unspecified              
--------------------------+-------------------------------------------------
Changes (by hamish):

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


Comment:

 g.region.grow module added to grass6 addons in r55843.

 http://grasswiki.osgeo.org/wiki/AddOns/GRASS_6#g.region.grow

 Instead of `rows=rows+2*n cols=cols+2*n` (or `rows=rows-2*n
 cols=cols-2*n`) I took the easy way and made use of the g.region -a flag,
 which rounds outwards to the nearest whole-cell. Feel free to reopen the
 wish if you'd like to see a -c flag added to make the expand= (should it
 be called amount= or extent=?) refer to cells not map units.


 Hamish

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



More information about the grass-dev mailing list