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

Replace opentopdata with (COG) GeoTIFF files #52

Open
johnjore opened this issue Apr 8, 2022 · 1 comment
Open

Replace opentopdata with (COG) GeoTIFF files #52

johnjore opened this issue Apr 8, 2022 · 1 comment

Comments

@johnjore
Copy link
Owner

johnjore commented Apr 8, 2022

Replace online GPS lookup using OpenTopoData with https://registry.opendata.aws/terrain-tiles/

Download GeoTIFF for area covered by the track/route. This allows lookup post recording of track to compare GPS and GeoTIFF data. Also, can use GPS position to lookup elevation data on status page.

This library should be usable. Its been fixed to work with the AWS data: https://github.com/fabric-io-rodrigues/GeoTiffCOG

Loop through route, and find boundaries
Convert GPS boundaries to X/Y using Z=14 (See https://github.com/tilezen/joerd/blob/master/docs/examples/collect.py#L94)
Download all TIF files for offline storage
Merge all TIF files to a single file
Loop through route and convert GPS coordinates to meters (See fabric-io-rodrigues/GeoTiffCOG#8)
Use location in meters to lookup elevation (return value is in in meters)

As we now have the TIF file offline, we can also loop through the GPS track to obtain what was actually done, vs what was planed. Can also compare GPS elevation data against TIF elevation data

@johnjore johnjore changed the title Replace opentopdata with GeoTIFF files Replace opentopdata with (COG) GeoTIFF files Apr 13, 2022
@johnjore
Copy link
Owner Author

johnjore commented May 13, 2022

Convert GPS boundaries to X/Y using Z=14 (See https://github.com/tilezen/joerd/blob/master/docs/examples/collect.py#L94): Done

Download all TIF files for offline storage: Done

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

1 participant