aboutsummaryrefslogtreecommitdiff
path: root/bin/vicmap2osm.js
diff options
context:
space:
mode:
authorAndrew Harvey <andrew@alantgeo.com.au>2021-05-05 22:37:28 +1000
committerAndrew Harvey <andrew@alantgeo.com.au>2021-05-05 22:37:28 +1000
commit64fd02be7dff62e9e658cb144c2b2cccfe7e592c (patch)
tree3b6ff1b94bf36e2d97916aa3d3c6d32b2eb971cf /bin/vicmap2osm.js
parent958ce70b91df29690ed9d61b720a9c2f3c34397d (diff)
filter out some unit building types
Diffstat (limited to 'bin/vicmap2osm.js')
-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)
}