abstreet/get_fresh_osm.sh

12 lines
470 B
Bash
Raw Normal View History

#!/bin/bash
set -e
# From http://download.geofabrik.de/north-america/us/washington.html
wget http://download.geofabrik.de/north-america/us/washington-latest.osm.pbf
osmupdate -v washington-latest.osm.pbf updated_wa.osm.pbf
rm -fv washington-latest.osm.pbf data/input/*.osm
osmconvert updated_wa.osm.pbf -B=data/polygons/huge_seattle.poly --complete-ways -o=data/input/Seattle.osm
rm -fv updated_wa.osm.pbf
# Then delete the individual .osm's desired and run import.sh