Skip to content

r.geomorphon: check region rows against search radius before reading - #7773

Merged
petrasovaa merged 3 commits into
OSGeo:mainfrom
krcoder123:fix-rgeomorphon-small-region
Jul 29, 2026
Merged

petrasovaa merged 3 commits into
OSGeo:mainfrom
krcoder123:fix-rgeomorphon-small-region

Conversation

@krcoder123

@krcoder123 krcoder123 commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

While working on parallelizing r.geomorphon, I found a small bug in the serial code.

When the region has fewer rows than the search radius needs, the module fails without saying why. It just gives a confusing library message about the symptom, not the cause.

This small PR adds an early check with an error message that tells the user their search value needs more rows than the region has, and what the minimum is.

While working on parallelizing r.geomorphon, I found a small bug in the serial code. When the region has fewer rows than the search radius needs, the module fails without saying why. It just gives a confusing library message about the symptom, not the cause. This small PR adds an early check with an error message that tells the user their search value needs more rows than the region has, and what the minimum is.
@github-actions github-actions Bot added raster Related to raster data processing C Related code is in C module labels Jul 24, 2026
Comment thread raster/r.geomorphon/main.c Resolved
@krcoder123
krcoder123 requested a review from cwhite911 July 26, 2026 19:14
Comment thread raster/r.geomorphon/main.c Resolved
Co-authored-by: Anna Petrasova <kratochanna@gmail.com>
@petrasovaa
petrasovaa enabled auto-merge (squash) July 26, 2026 21:13
@petrasovaa
petrasovaa merged commit acb695e into OSGeo:main Jul 29, 2026
26 checks passed
@github-actions github-actions Bot added this to the 8.6.0 milestone Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C Related code is in C module raster Related to raster data processing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants