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

Work with curved height maps? #17

Open
okla opened this issue Feb 25, 2022 · 3 comments
Open

Work with curved height maps? #17

okla opened this issue Feb 25, 2022 · 3 comments

Comments

@okla
Copy link

okla commented Feb 25, 2022

Am I right that this only works with "flat" height maps: F(x, y) = z where x, y, z are cartesian coordinates? For example, there is SRTM DEM set where each tile represents a part of Earth surface, so it's curved: F(f, l) = h where f and l are latitude and longitude (angles). Is there any way this can be used for such height maps?

@okla okla changed the title Work with ellipsoid? Work with curved height maps? Feb 25, 2022
@fogleman
Copy link
Owner

Correct, this is cartesian only.

I have a different project (below) that can do an entire planet, but nothing that does ellipsoid tiles.

https://github.com/fogleman/demsphere

@okla
Copy link
Author

okla commented Feb 28, 2022

I see. I am interested in the optimization algorithm only, by the way. Wonder if it can be used for curved height maps somehow.

@mdsumner
Copy link

I don't see why it matters fwiw, the gradient is not "correct" but surely it works as well for thinning spurious detail ?? and any tile in longlat is likely a small enough region to be locally close enough? Beyond that you should use a projection, but then you have to remodel the data and that's better done as a mesh often. 🙏

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

No branches or pull requests

3 participants