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

Use 1/9 Arcsecond Elevation Data #155

Merged
merged 13 commits into from
Jul 23, 2024
Merged

Conversation

rsarathy
Copy link

No description provided.

@graue graue mentioned this pull request Jun 18, 2024
@@ -50,7 +50,7 @@ public MultiSourceElevationProvider(String cacheDir) {

@Override
public double getEle(double lat, double lon) {
if (lat > 37 && lat < 38 && lon > -123 && lon < -122)
if (lat > 37.5 && lat < 38.25 && lon > -122.75 && lon < -122)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are these hard coded coordinates about? What happens if i try to use this el. provider outside of these bounds?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a rectangle of 1/9th arcsecond data for the 0.75x0.75 square with the northwestern corner (38.25, -122.75). If getEle() receives a coordinate outside of this box, we fallback to SRTM data.

@rsarathy rsarathy requested a review from Andykmcc July 20, 2024 00:00
@rsarathy rsarathy merged commit 5f19853 into master Jul 23, 2024
3 checks passed
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.

3 participants