a-b-street / abstreet

Transportation planning and traffic simulation software for creating cities friendlier to walking, biking, and public transit
https://a-b-street.github.io/docs/
Apache License 2.0
7.37k stars 332 forks source link

Get elevation data from a pure Rust crate that only handles some #1134

Closed dabreegster closed 6 months ago

dabreegster commented 6 months ago

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:

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.

dabreegster commented 6 months ago

Edit: between this and yesterday's switch to osm.pbf for imports, I can regenerate all 156 cities on my fastest laptop in about 15 minutes! I don't quite remember what it was before, but I'm quite sure this is a nice improvement