Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

r.grow: Correctly handle shrinking of maps without NULL values #343

Merged
merged 2 commits into from
Mar 20, 2020

Conversation

marisn
Copy link
Contributor

@marisn marisn commented Feb 15, 2020

If r.grow shrinking (negative distance) is performed on a map without NULL values, output is all NULL, although it should be identical to input. With this PR, shrinking of a map without NULL values will produce output equal to input.

Should be applied on top of PR #277

@metzm
Copy link
Contributor

metzm commented Feb 16, 2020

Looks good to me, seems like a bugfix that should be backported.

@metzm metzm added backport_needed bug Something isn't working labels Feb 16, 2020
@neteler neteler added this to the 7.8.3 milestone Feb 17, 2020
@neteler
Copy link
Member

neteler commented Feb 17, 2020

A testsuite script could be rather easily derived from PR #347, pls check

marisn added a commit to marisn/grass that referenced this pull request Feb 18, 2020
Māris Nartišs and others added 2 commits February 19, 2020 16:54
@landam
Copy link
Member

landam commented Mar 12, 2020

@marisn Time for merge?

@marisn
Copy link
Contributor Author

marisn commented Mar 13, 2020

@marisn Time for merge?

Whenever you ready. I can rebase, if needed.

@neteler neteler merged commit dd5de23 into OSGeo:master Mar 20, 2020
neteler pushed a commit that referenced this pull request Mar 20, 2020
* r.grow: Output unchanged map when shrinking if there are no null values in the input.
Fixes r.grow producing empty maps on shrink.

* testsuite: r.grow test shrinking map without NULL values
Based on PR #343

Co-authored-by: Māris Nartišs <maris.nartiss@lu.lv>
HuidaeCho pushed a commit to HuidaeCho/grass that referenced this pull request Mar 20, 2020
…#343)

* r.grow: Output unchanged map when shrinking if there are no null values in the input.
Fixes r.grow producing empty maps on shrink.

* testsuite: r.grow test shrinking map without NULL values
Based on PR OSGeo#343

Co-authored-by: Māris Nartišs <maris.nartiss@lu.lv>
@marisn marisn deleted the r_grow_null_fix branch April 18, 2020 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants