diff options
author | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-26 13:18:10 +1000 |
---|---|---|
committer | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-26 13:18:10 +1000 |
commit | 974b530f9fbd3ebe9c3638a7071692f9085eb46e (patch) | |
tree | 334dfa11204a853ca48c81f28cb7a71f2e42baef /bin | |
parent | 65345c290668de2ffcdbfd714069af86637b6d94 (diff) |
only output _matches in debug
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/conflate.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/conflate.js b/bin/conflate.js index 770cc57..f2f4b7b 100755 --- a/bin/conflate.js +++ b/bin/conflate.js @@ -185,7 +185,9 @@ const conflate = new Transform({ }) if (matches.length) { // matching unit, number, street, high confidence - feature.properties._matches = matches.map(match => `${match.properties['@type']}/${match.properties['@id']}`).join(',') + if (argv.debug) { + feature.properties._matches = matches.map(match => `${match.properties['@type']}/${match.properties['@id']}`).join(',') + } outputStreams.exactMatch.write(feature) const exactMatchLine = multiLineString(matches.map(match => [feature.geometry.coordinates, centroid(match).geometry.coordinates]), feature.properties) |