From c3afcdfce51b4b0e213b9cac44ed8e1a8d38b35a Mon Sep 17 00:00:00 2001 From: Al Date: Mon, 19 Sep 2016 03:14:58 -0400 Subject: [PATCH] [osm] expanding criteria for the buildings data set (buildlings with addr:housenumber, addr:housename, addr:street, or addr:postcode are useful) --- scripts/geodata/osm/fetch_osm_address_data.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/geodata/osm/fetch_osm_address_data.sh b/scripts/geodata/osm/fetch_osm_address_data.sh index f3753f05..2d3aa892 100755 --- a/scripts/geodata/osm/fetch_osm_address_data.sh +++ b/scripts/geodata/osm/fetch_osm_address_data.sh @@ -174,7 +174,7 @@ rm $PLANET_VENUES_LATLONS echo "Filtering for buildings: `date`" PLANET_BUILDINGS_O5M="planet-buildings.o5m" VALID_BUILDING_KEYS="building= or building:part=" -VALID_BUILDINGS="( ( $VALID_BUILDING_KEYS ) and ( building!=yes or name= ) )" +VALID_BUILDINGS="( ( $VALID_BUILDING_KEYS ) and ( building!=yes or name= or addr:housename= or addr:street= or addr:housenumber= or addr:postcode= ) )" osmfilter $PLANET_O5M --keep="$VALID_BUILDINGS" --drop-author --drop-version -o=$PLANET_BUILDINGS_O5M PLANET_BUILDINGS_LATLONS="planet-buildings-latlons.o5m" osmconvert $PLANET_BUILDINGS_O5M --max-objects=1000000000 --all-to-nodes -o=$PLANET_BUILDINGS_LATLONS