[GRASS-dev] [GRASS GIS] #3509: g.region grow with negative number limited because of top and bottom
GRASS GIS
trac at osgeo.org
Wed Mar 14 01:55:05 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 mmetz):
Replying to [comment:3 wenzeslaus]:
> What about just ignoring the request for decrease when the minimal range
is reached? Not sure if that makes sense for X and Y, but it seems OK for
Z.
+1
Introducing yet another flag is IMHO not a good idea, and it is against
the idea that the `grow` option should apply to all dimensions. I would
rather add a test for each dimension that the change results in a valid
region: top must be > bottom, east must be > west, north must be > south.
For latlon, north must be <= 90 degrees + 0.5 * ns_res, south must be >=
-90 degrees - 0.5 * ns_res. A warning could be printed if growing in a
specific dimension would result in an invalid region.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3509#comment:4>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list