2019-10-25 03:11:35 +03:00
|
|
|
#!/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
|
2019-10-26 19:52:36 +03:00
|
|
|
osmconvert updated_wa.osm.pbf -B=data/polygons/huge_seattle.poly --complete-ways -o=data/input/Seattle.osm
|
2019-10-25 03:11:35 +03:00
|
|
|
rm -fv updated_wa.osm.pbf
|
2019-10-26 19:52:36 +03:00
|
|
|
# Then delete the individual .osm's desired and run import.sh
|