diff options
author | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-04 17:48:04 +1000 |
---|---|---|
committer | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-04 17:48:04 +1000 |
commit | 588b35cef949a27fe938e38d7710965405ffdac1 (patch) | |
tree | 1e679b3421ef372ea40938562495a0cfe1acf83d /lib | |
parent | c44dca4697a768c452a9bf48ef5d9e326dfd652c (diff) |
don't include building / property name
Diffstat (limited to 'lib')
-rw-r--r-- | lib/filterOSM.js | 7 | ||||
-rw-r--r-- | lib/toOSM.js | 4 |
2 files changed, 3 insertions, 8 deletions
diff --git a/lib/filterOSM.js b/lib/filterOSM.js index e530773..f7f22be 100644 --- a/lib/filterOSM.js +++ b/lib/filterOSM.js @@ -1,13 +1,12 @@ module.exports = (feature, options) => { - // skip any addresses without either a housenumber or housename + // skip any addresses without a housenumber // eg PFI 53396626 has no housenumber if ( - !('addr:housenumber' in feature.properties) && - !('addr:housename' in feature.properties) + !('addr:housenumber' in feature.properties) ) { if (argv.debug) { - console.log(`PFI ${feature.properties._pfi} has neither a addr:housename or addr:housenumber, filtering`) + console.log(`PFI ${feature.properties._pfi} has no addr:housenumber, filtering`) } return false } diff --git a/lib/toOSM.js b/lib/toOSM.js index 2a5c75c..95c387f 100644 --- a/lib/toOSM.js +++ b/lib/toOSM.js @@ -119,10 +119,6 @@ module.exports = (sourceFeature, options) => { } */ - if (sourceProperties.BUILDING) { - outputProperties['addr:housename'] = sourceProperties.BUILDING - } - // house_* const house_1 = [ sourceProperties.HSE_PREF1, |