From 974b530f9fbd3ebe9c3638a7071692f9085eb46e Mon Sep 17 00:00:00 2001 From: Andrew Harvey Date: Wed, 26 May 2021 13:18:10 +1000 Subject: only output _matches in debug --- bin/conflate.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/conflate.js') 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) -- cgit v1.2.3