diff options
author | Andrew Harvey <andrew@alantgeo.com.au> | 2022-05-21 14:59:02 +1000 |
---|---|---|
committer | Andrew Harvey <andrew@alantgeo.com.au> | 2022-05-21 14:59:02 +1000 |
commit | 227cfc9ca6a9c3af0b3f56efefb737a572670147 (patch) | |
tree | 99b1eccc37648083ca12650cd1c451dbf43a45ec /bin | |
parent | 60173d46488a8d2fa251ded8bba6afed02a5b0ce (diff) |
fix compare in conflate
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/conflate.js | 6 |
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')) { |