2019-10-25 03:11:35 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-11-24 18:21:30 +03:00
|
|
|
# This tool needs https://wiki.openstreetmap.org/wiki/Osmupdate#Download
|
|
|
|
|
2019-10-25 03:11:35 +03:00
|
|
|
set -e
|
|
|
|
|
|
|
|
# From http://download.geofabrik.de/north-america/us/washington.html
|
2019-12-03 23:29:57 +03:00
|
|
|
curl -L -O http://download.geofabrik.de/north-america/us/washington-latest.osm.pbf
|
2019-10-25 03:11:35 +03:00
|
|
|
osmupdate -v washington-latest.osm.pbf updated_wa.osm.pbf
|
2019-12-03 23:25:33 +03:00
|
|
|
rm -fv washington-latest.osm.pbf data/input/osm/*.osm
|
|
|
|
osmconvert updated_wa.osm.pbf -B=data/input/polygons/huge_seattle.poly --complete-ways -o=data/input/osm/Seattle.osm
|
2019-10-25 03:11:35 +03:00
|
|
|
rm -fv updated_wa.osm.pbf
|
2020-02-18 08:54:50 +03:00
|
|
|
# Then run import.sh
|