hmm icon indicating copy to clipboard operation
hmm copied to clipboard

Work with curved height maps?

Open okla opened this issue 2 years ago • 3 comments

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 avatar Feb 25 '22 20:02 okla

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

fogleman avatar Feb 28 '22 00:02 fogleman

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

okla avatar Feb 28 '22 06:02 okla

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. 🙏

mdsumner avatar Feb 28 '22 08:02 mdsumner