[GRASS-dev] [GRASS GIS] #3509: g.region grow with negative number limited because of top and bottom

GRASS GIS trac at osgeo.org
Tue Mar 13 17:28:06 PDT 2018


#3509: g.region grow with negative number limited because of top and bottom
-------------------------+-------------------------------------------------
  Reporter:  wenzeslaus  |      Owner:  grass-dev@…
      Type:  defect      |     Status:  new
  Priority:  minor       |  Milestone:  7.6.0
 Component:  Raster      |    Version:  svn-trunk
Resolution:              |   Keywords:  grow, shrink, g.region, expand
       CPU:              |  computational region, extent, 3D
  Unspecified            |   Platform:  Unspecified
-------------------------+-------------------------------------------------

Comment (by lucadelu):

 I create this "workaround", I don't think a true fix could exist. It is
 something like if a user decide to set the Top smaller then Bottom.

 The same problem could append with extent

 {{{
 g.region -p raster=elevation
 g.region nsres=13480 ewres=14980 rows=1 cols=1 -p
 g.region -p grow=-1
 ERROR: North must be larger than South
 }}}

 Should we also try to fix something like the error above? Or we should
 just improve the output message?
 I think this is not a bug but a user error or misunderstanding.

 What do you think about the attached patch?

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



More information about the grass-dev mailing list