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