diff options
author | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-05 22:37:28 +1000 |
---|---|---|
committer | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-05 22:37:28 +1000 |
commit | 64fd02be7dff62e9e658cb144c2b2cccfe7e592c (patch) | |
tree | 3b6ff1b94bf36e2d97916aa3d3c6d32b2eb971cf /lib/filterOSM.js | |
parent | 958ce70b91df29690ed9d61b720a9c2f3c34397d (diff) |
filter out some unit building types
Diffstat (limited to 'lib/filterOSM.js')
-rw-r--r-- | lib/filterOSM.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/filterOSM.js b/lib/filterOSM.js index 0a22b8b..2c96ece 100644 --- a/lib/filterOSM.js +++ b/lib/filterOSM.js @@ -1,12 +1,15 @@ -module.exports = (feature, options) => { +/** + * Filters features based on the OSM schema from toOSM + * + * @param {Object} feature + * @returns {boolean} + */ +module.exports = (feature) => { // skip any addresses without a housenumber if ( !('addr:housenumber' in feature.properties) ) { - if (options && options.debug) { - console.log(`PFI ${feature.properties._pfi} has no addr:housenumber, filtering`) - } return false } |