-
-
Notifications
You must be signed in to change notification settings - Fork 337
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.horizon: adjust bufferzone to multiples of resolution #3384
r.horizon: adjust bufferzone to multiples of resolution #3384
Conversation
@petrasovaa I let you resolve the last comment, and it will merge automatically ;) Then it will be time to resolve the conflicts for the other r.horizon PRs |
* r.horizon: adjust bufferzone to multiples of resolution * fix test * restrict input bufferzone to positive values * add tests for negative bufferzone
Backport breaks tests, because of a bug in pygrass, either I'll remove the test from 8.3 or #2817 needs to be backported. @wenzeslaus can we backport it? |
I recommend removing the test. It is the least invasive change for the upcoming micro release of v8.3 which is close. While the improvement in the message is significant, the fix is may cause trouble if someone wrote their code around it without reading the doc. Next minor, i.e., 8.4, which is relatively close, is a better place for it. |
* r.horizon: adjust bufferzone to multiples of resolution * fix test * restrict input bufferzone to positive values * add tests for negative bufferzone
Fixes #3266. Now it adjust the bufferzone, e.g. for 10m resolution raster, bufferzone 109 gets adjusted to 100.
Just to see the what effect this had, this is a difference between a horizon raster where bufferzone is 100 (even multiples of resolution 10) and 103. Now there is no difference (see the test).
![Selection_276](https://private-user-images.githubusercontent.com/7494312/300586422-8a91b94e-d34e-4f3b-b76a-4b2b0c42baa4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1MzM1MTUsIm5iZiI6MTczOTUzMzIxNSwicGF0aCI6Ii83NDk0MzEyLzMwMDU4NjQyMi04YTkxYjk0ZS1kMzRlLTRmM2ItYjc2YS00YjJiMGM0MmJhYTQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTRUMTE0MDE1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODJhYjRmNTZhNzA4YjRjMGU1N2Y5YzMxZjA4ZGY0Y2I4MGUxODdiOTAzYjA0ODU2NzA5MTJlOTkxNGUxOGI4MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.G2WAqbJ_QvA9MT4NzPIbaCq1DlBUEFmHMyTh28w18ng)