From 64fd02be7dff62e9e658cb144c2b2cccfe7e592c Mon Sep 17 00:00:00 2001 From: Andrew Harvey Date: Wed, 5 May 2021 22:37:28 +1000 Subject: filter out some unit building types --- bin/vicmap2osm.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bin/vicmap2osm.js') 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) } -- cgit v1.2.3