aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/vicmap2osm.js5
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)
}