abstreet/get_fresh_osm.sh
Dustin Carlino 69d6aca0ef switch from wget to curl, since wget isnt installed by default on mac.
improve developer instructions a bit. don't crash if scrot doesnt exist.
This partly helps with #3, but more work still needed
2019-11-25 11:21:43 -08:00

14 lines
547 B
Bash
Executable File

#!/bin/bash
# This tool needs https://wiki.openstreetmap.org/wiki/Osmupdate#Download
set -e
# From http://download.geofabrik.de/north-america/us/washington.html
curl -O 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