diff options
author | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-03 09:11:33 +1000 |
---|---|---|
committer | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-03 09:11:33 +1000 |
commit | 32a78fde0bc80d6b38b647942462ac12d4c64419 (patch) | |
tree | 90dbe43a5c8badf21930503ed799d8f3c4fad18b | |
parent | b2f8c161d9c5652fd7b996c19a0edbdc845592ff (diff) |
code comments
-rwxr-xr-x | reduceOverlap.js | 5 |
1 files 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) } |