aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAndrew Harvey <andrew@alantgeo.com.au>2022-05-21 14:59:02 +1000
committerAndrew Harvey <andrew@alantgeo.com.au>2022-05-21 14:59:02 +1000
commit227cfc9ca6a9c3af0b3f56efefb737a572670147 (patch)
tree99b1eccc37648083ca12650cd1c451dbf43a45ec /bin
parent60173d46488a8d2fa251ded8bba6afed02a5b0ce (diff)
fix compare in conflate
Diffstat (limited to 'bin')
-rwxr-xr-xbin/conflate.js6
1 files changed, 4 insertions, 2 deletions
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')) {