From e56606334306c8fcaf2acc3bfa58771b9f2f1709 Mon Sep 17 00:00:00 2001 From: Al Date: Tue, 8 Sep 2015 09:18:05 -0700 Subject: [PATCH] [osm] Doing an all-to-nodes conversion and an additional filter on the borders data set --- scripts/geodata/osm/fetch_osm_address_data.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/geodata/osm/fetch_osm_address_data.sh b/scripts/geodata/osm/fetch_osm_address_data.sh index fff19e54..6796ae1c 100755 --- a/scripts/geodata/osm/fetch_osm_address_data.sh +++ b/scripts/geodata/osm/fetch_osm_address_data.sh @@ -46,9 +46,11 @@ rm $PLANET_ADDRESSES_LATLONS echo " Filtering for borders: `date`" PLANET_BORDERS_O5M="planet-borders.o5m" osmfilter $PLANET_O5M --keep="boundary=administrative or place=city or place=town or place=neighbourhood or place=suburb" --drop-author --drop-version -o=$PLANET_BORDERS_O5M -PLANET_BORDERS="planet-borders.osm" -osmconvert $PLANET_BORDERS_O5M --max-objects=1000000000 --all-to-nodes -o=$PLANET_BORDERS +PLANET_BORDERS_LATLONS="planet-borders-latlons.o5m" +osmconvert $PLANET_BORDERS_O5M --max-objects=1000000000 --all-to-nodes -o=$PLANET_BORDERS_LATLONS rm $PLANET_BORDERS_O5M +osmfilter $PLANET_BORDERS_LATLONS --keep="boundary=administrative or place=city or place=town or place=neighbourhood or place=suburb" -o=$PLANET_BORDERS +rm $PLANET_BORDERS_LATLONS echo "Filtering for venue records: `date`"