Get elevation data from a pure Rust crate that only handles some #1134
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
GeoTIFFs. #82
This PR switches from Docker + Python/GDAL-based https://github.com/eldang/elevation_lookups to pure Rust https://github.com/dabreegster/elevation. The benefits are:
gdalwarp -t_srs EPSG:4326 kc_2016_lidar.tif king_county_2016_lidar.tif
as a one-time step is all it takes to transform the Seattle file, and the UK one was already in the right coordinate system.A future step could look for SRTM / NASADEM geotiff files and do any coordinate transformation necessary for use anywhere. And separately, use a pure Rust approach for interpolating from GeoJSON contour files.
Validation was regenerating Seattle and UK maps and checking the elevation / steep street layers in the simulation mode. The results are not exactly the same, but close enough. Regenerating all maps again now, will merge when that's done.