get elevation of coordinate from srtm dem file in kotlin or java

166 views Asked by At

I want get elevation of point offline in my app I searched a lot but could not find anything for this.How can I do this?

We have a dem file and we may get altitude of point with coordinate (latitude and longitude)

1

There are 1 answers

3
user3738870 On

This library seems promising: https://github.com/komoot/batch-dem-reader

This Kotlin app also seems relevant: https://github.com/raynigon/raylevation

If none of the options give you what you need, you'll probably have to implement parsing the file yourself. For that, you can get inspiration from libraries written in other languages (e.g. https://github.com/tkrajina/srtm.py)