From ca629e295d09cb0a3195aa7436faaf3fcb1009bb Mon Sep 17 00:00:00 2001 From: Al Date: Thu, 15 Oct 2015 12:06:08 -0400 Subject: [PATCH] [osm] Adding admin boundaries filter in OSM data --- scripts/geodata/osm/fetch_osm_address_data.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/geodata/osm/fetch_osm_address_data.sh b/scripts/geodata/osm/fetch_osm_address_data.sh index 6796ae1c..7774cc57 100755 --- a/scripts/geodata/osm/fetch_osm_address_data.sh +++ b/scripts/geodata/osm/fetch_osm_address_data.sh @@ -45,6 +45,8 @@ rm $PLANET_ADDRESSES_LATLONS echo " Filtering for borders: `date`" PLANET_BORDERS_O5M="planet-borders.o5m" +PLANET_ADMIN_BORDERS_OSM="planet-admin-borders.osm" +osmfilter $PLANET_O5M --keep="boundary=administrative" --drop-author --drop-version -o=$PLANET_ADMIN_BORDERS_OSM 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_LATLONS="planet-borders-latlons.o5m" osmconvert $PLANET_BORDERS_O5M --max-objects=1000000000 --all-to-nodes -o=$PLANET_BORDERS_LATLONS