#2368: Python version of r.grow does not support shrinking
-------------------------+-------------------------------------------------
Reporter: wenzeslaus | Owner: grass-dev@…
Type: | Status: new
enhancement |
Priority: minor | Milestone: 7.2.0
Component: Raster | Version: svn-trunk
Resolution: | Keywords: r.grow, r.grow.distance, r.buffer,
CPU: | r.buffer.lowmem
Unspecified | Platform: Unspecified
-------------------------+-------------------------------------------------
Comment (by neteler):
Replying to [comment:7 neteler]:
> Replying to [comment:6 mmetz]:
> > Replying to [comment:3 glynn]:
> > > The easiest change would be to have an "invert" flag which caused
the distance= map to contain the distance from the nearest null cell
(currently, it's the distance from the nearest non-null cell, so the non-
null cells themselves have a distance of 0).
> >
> > Attached is a minimally invasive patch to add a new flag to
r.grow.distance, calculating the distance to the nearest null cell.
>
> Patch applied to trunk in r67620.
Can I backport this to 7.2.0? Again I need a negative buffer...
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2368#comment:9>
GRASS GIS <https://grass.osgeo.org>