From 32a78fde0bc80d6b38b647942462ac12d4c64419 Mon Sep 17 00:00:00 2001 From: Andrew Harvey Date: Mon, 3 May 2021 09:11:33 +1000 Subject: code comments --- reduceOverlap.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/reduceOverlap.js b/reduceOverlap.js index 6cf4058..8b24baa 100755 --- a/reduceOverlap.js +++ b/reduceOverlap.js @@ -46,9 +46,10 @@ const reduce = new Transform({ var groupedFeatures = features[key] if (groupedFeatures.length === 1) { + // point not overlapping this.push(groupedFeatures[0]) } else { - // reduce + // points overlapping, try to reduce to non-overlapping // if housenumber, street, suburb, state, postcode are all the same // and it's only unit which differs, @@ -90,7 +91,6 @@ const reduce = new Transform({ }, []) .map(range => range.join('-')) - // todo sort numeric nonUnitFeature.properties['addr:flats'] = sortedAllOtherUnitsAsRanges.join(';') this.push(nonUnitFeature) } @@ -118,7 +118,6 @@ const reduce = new Transform({ }, []) .map(range => range.join('-')) - // todo sort numeric feature.properties['addr:flats'] = unitRanges.join(';') this.push(feature) } -- cgit v1.2.3