Skip to content

Comments

r.horizon: variable needs to be reset for point mode#3441

Merged
petrasovaa merged 2 commits intoOSGeo:mainfrom
petrasovaa:r.horizon-fix-zp
Feb 22, 2024
Merged

r.horizon: variable needs to be reset for point mode#3441
petrasovaa merged 2 commits intoOSGeo:mainfrom
petrasovaa:r.horizon-fix-zp

Conversation

@petrasovaa
Copy link
Contributor

@petrasovaa petrasovaa commented Feb 20, 2024

Another bug coming from using global variables in r.horizon. Reported by a user, can be reproduced with https://www.datigeo-piem-download.it/static/regp01/DTM5_ICE/RIPRESA_AEREA_ICE_2009_2011_DTM-SDO_CTR_FOGLI50-172-EPSG32632-TIF.zip:

r.horizon elevation=DTM5_172 direction=0 step=1 coordinates=350089,4979561 -d file=horizon.csv

The bug is that for part of the angles it results in zeros. It comes up when there are nulls at the edge of the raster, test was added.

This bug is not present in #3346, there it was (accidentally) fixed.

@petrasovaa petrasovaa added the bug Something isn't working label Feb 20, 2024
@petrasovaa petrasovaa added this to the 8.3.2 milestone Feb 20, 2024
@petrasovaa petrasovaa self-assigned this Feb 20, 2024
@github-actions github-actions bot added raster Related to raster data processing C Related code is in C module labels Feb 20, 2024
@petrasovaa petrasovaa modified the milestones: 8.3.2, 8.4.0 Feb 20, 2024
@github-actions github-actions bot added Python Related code is in Python tests Related to Test Suite labels Feb 22, 2024
@petrasovaa petrasovaa merged commit d5718d8 into OSGeo:main Feb 22, 2024
petrasovaa added a commit that referenced this pull request Feb 22, 2024
The bug is that for part of the angles it results in zeros. It comes up when there are nulls at the edge of the raster, test was added.
@petrasovaa
Copy link
Contributor Author

Thanks for the review!

Backported to be part of 8.3.2 release.

@petrasovaa petrasovaa deleted the r.horizon-fix-zp branch February 22, 2024 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working C Related code is in C module Python Related code is in Python raster Related to raster data processing tests Related to Test Suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants