diff options
author | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-13 14:29:27 +1000 |
---|---|---|
committer | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-13 14:29:27 +1000 |
commit | 6853fd209fa80f8788951e6105ccfe8e5c8b30c6 (patch) | |
tree | ced7bbae5cdc5bbf1ab1d3d3d92bd8956c0a77ca /bin | |
parent | 9e2c8a7a3964363b12559c91ea55d9f80659fa11 (diff) |
additional logging
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reduceOverlap.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reduceOverlap.js b/bin/reduceOverlap.js index bc3dbd0..c5da852 100755 --- a/bin/reduceOverlap.js +++ b/bin/reduceOverlap.js @@ -131,7 +131,7 @@ const reduce = new Transform({ } this.push(featureGroup.filter(f => 'addr:unit' in f.properties)[0]) } else { - nonUnitFeature.properties['addr:flats'] = unitsToRanges(allOtherUnits) + nonUnitFeature.properties['addr:flats'] = unitsToRanges(allOtherUnits, featureGroup) // TODO should we set addr:flats:prefix from addr:unit:prefix? this.push(nonUnitFeature) } @@ -149,7 +149,7 @@ const reduce = new Transform({ const feature = cloneDeep(featureGroup[0]) delete feature.properties['addr:unit'] - feature.properties['addr:flats'] = unitsToRanges(units) + feature.properties['addr:flats'] = unitsToRanges(units, featureGroup) this.push(feature) } } else if (featureGroup.length === 1) { |