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 /bin/vicmap2osm.js | |
parent | 958ce70b91df29690ed9d61b720a9c2f3c34397d (diff) |
filter out some unit building types
Diffstat (limited to 'bin/vicmap2osm.js')
-rwxr-xr-x | bin/vicmap2osm.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/vicmap2osm.js b/bin/vicmap2osm.js index 8559e8a..695a08c 100755 --- a/bin/vicmap2osm.js +++ b/bin/vicmap2osm.js @@ -9,6 +9,7 @@ const { Transform, pipeline } = require('readable-stream') const ndjson = require('ndjson') const toOSM = require('../lib/toOSM.js') const filterOSM = require('../lib/filterOSM.js') +const filterSource = require('../lib/filterSource.js') const argv = require('yargs/yargs')(process.argv.slice(2)) .option('debug', { @@ -44,9 +45,7 @@ const transform = new Transform({ }) // some addresses we skip importing into OSM, see README.md#omitted-addresses - if (filterOSM(osm, { - debug: argv.debug - })) { + if (filterOSM(osm) && filterSource(feature)) { this.push(osm) } |