From 227cfc9ca6a9c3af0b3f56efefb737a572670147 Mon Sep 17 00:00:00 2001 From: Andrew Harvey Date: Sat, 21 May 2022 14:59:02 +1000 Subject: fix compare in conflate --- bin/conflate.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin/conflate.js') diff --git a/bin/conflate.js b/bin/conflate.js index 5af586c..e09c2ed 100755 --- a/bin/conflate.js +++ b/bin/conflate.js @@ -246,9 +246,11 @@ const conflate = new Transform({ const exactMatchLine = lineString([feature.geometry.coordinates, centroid(match).geometry.coordinates], feature.properties) outputStreams.exactMatchSingleLines.write(exactMatchLine) - // only report a MR modifyElement when there are tag differences, and the Vicmap feature has addr:flats and OSM doesn't have addr:flats to avoid modifying existing mapped addr:flats + // only report a MR modifyElement when there are tag differences, + // and the Vicmap feature has addr:flats, + // and OSM doesn't have addr:flats to avoid modifying existing mapped addr:flats // though we only found node/6132032112 which differed - if (hasTagDifference(match, feature) && feature.properties['addr:flats'] && !osm.properties['add:flats']) { + if (hasTagDifference(match, feature) && feature.properties['addr:flats'] && !match.properties['add:flats']) { const setProperties = {} for (const [key, value] of Object.entries(feature.properties)) { if (key.startsWith('addr:flats')) { -- cgit v1.2.3