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

Extend "apply curvature" to planetary bodies #527

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

steo85it
Copy link

As I'm working with planetary DEMs, I need to use a radius different from Earth's for the earth_curvature function/operator. I could easily change the value of EARTH_RADIUS for my specific use, but it could be nice to leave the user choose the radius (as for the lonlat to sphere function). I sketched a solution in this PR.

However, it's still not optimal: the function is applied once with the default radius value, then changing the radius causes a second correction (on top of the first one). Any suggestion how to avoid this?

Also before my mod, nothing prevents from applying this correction over and over: as this is untracked and w/o warning, it can lead to unexpected results and it's dangerous in my opinion.

Thanks for the super useful add-on, by the way!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant