Python version of r.grow does not support shrinking
|Reported by:||wenzeslaus||Owned by:|
|Keywords:||r.grow, r.grow.distance, r.buffer, r.buffer.lowmem||Cc:|
While C version of
r.grow supports shrinking (negative distance/radius) since r59735, the Python version of
r.grow based on C module
r.mapcalc expression supports only growing (positive distance/radius). Shrinking (negative buffer) is a useful feature, so I think we should add it.
I'm not sure if negative distances can be added to
If not, I would say that we need to use C implementation of
r.grow (which might be even faster then the Python script version which calls several modules and creates temporary maps).
If duplication of code would be an issue in case of C
r.grow.distance, we may consider adding some functions to the library if they are useful for more modules.
r.buffer.lowmem does not seem to support it neither, as far as I know.
v.buffer supports negative distances ("inward buffer" / "negative buffer").