From 6c8e5b45a43d39fffd5e651de45e01c7bc7a1108 Mon Sep 17 00:00:00 2001 From: Al Date: Wed, 18 Mar 2015 08:40:07 -0400 Subject: [PATCH] [fix] removing building alias (for OSm it means building category), fix to fetch script --- scripts/geodata/osm/fetch_osm_address_data.sh | 2 +- scripts/geodata/osm/osm_address_training_data.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/geodata/osm/fetch_osm_address_data.sh b/scripts/geodata/osm/fetch_osm_address_data.sh index 4a4d2e9a..b1567d9e 100644 --- a/scripts/geodata/osm/fetch_osm_address_data.sh +++ b/scripts/geodata/osm/fetch_osm_address_data.sh @@ -40,7 +40,7 @@ PLANET_ADDRESSES_LATLONS="planet-addresses-latlons.o5m" osmconvert $PLANET_ADDRESSES_O5M --max-objects=1000000000 --all-to-nodes -o=$PLANET_ADDRESSES_LATLONS rm $PLANET_ADDRESSES_O5M PLANET_ADDRESSES="planet-addresses.osm" -osmfilter $PLANET_ADDRESSES_LATLONS --keep="addr:street= and ( ( name= and amenity= ) or addr:housename= or addr:housenumber= )" -o $PLANET_ADDRESSES +osmfilter $PLANET_ADDRESSES_LATLONS --keep="addr:street= and ( ( name= and amenity= ) or addr:housename= or addr:housenumber= )" -o=$PLANET_ADDRESSES rm $PLANET_ADDRESSES_LATLONS diff --git a/scripts/geodata/osm/osm_address_training_data.py b/scripts/geodata/osm/osm_address_training_data.py index 575e0818..f08f90f4 100644 --- a/scripts/geodata/osm/osm_address_training_data.py +++ b/scripts/geodata/osm/osm_address_training_data.py @@ -127,7 +127,6 @@ class AddressFormatter(object): ('addr:postal_code', 'postcode'), ('addr:postcode', 'postcode'), ('addr:country', 'country'), - ('building', 'house'), ('street', 'road'), ('street_name', 'road'), ('residential', 'road'),