Skip to content

ramer smoothing: use 2D total distance for averageSlope - #3205

Merged
karussell merged 4 commits into
masterfrom
issue_3202
Oct 14, 2025
Merged

karussell merged 4 commits into
masterfrom
issue_3202

Conversation

@karussell

@karussell karussell commented Oct 10, 2025 •

Copy link
Copy Markdown
Member

Fixes #3202.

We use a too imprecise total distance leading into wrong average slope which can lead to very large recursion depths of over 4000 although log_2(19000)=14 and so only probably depth=50 would be expected.

There is a certain overhead for DistanceCalcEarth.calcDistance but as we avoid calling DIST_EARTH.calcDist on every depth it should not be slower.

@karussell karussell added this to the 11.0 milestone Oct 10, 2025
@karussell karussell added the bug label Oct 10, 2025
@karussell
karussell merged commit 1d2f414 into master Oct 14, 2025
@karussell
karussell deleted the issue_3202 branch October 14, 2025 09:03

This branch was previously deployed

1 inactive deployment
benchmarks — 9d804987 Deployed Oct 10, 2025 by karussell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

StackOverflowError for EdgeElevationSmoothingRamer

1 participant