aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAndrew Harvey <andrew@alantgeo.com.au>2021-05-07 22:50:57 +1000
committerAndrew Harvey <andrew@alantgeo.com.au>2021-05-07 22:50:57 +1000
commit8f7a60001f375aa792320030fb65e0d7c9687996 (patch)
treeb608cf2a4afab3c98e88dca1fa130f59cabef76d /bin
parent2b2d1b6b7a6f0bcf19da8bc111884407ba2400bf (diff)
fix reduceOverlap to push feature not unit number
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reduceOverlap.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reduceOverlap.js b/bin/reduceOverlap.js
index aa18125..bc3dbd0 100755
--- a/bin/reduceOverlap.js
+++ b/bin/reduceOverlap.js
@@ -129,7 +129,7 @@ const reduce = new Transform({
debugStreams.oneUnitOneNonUnit.write(feature)
})
}
- this.push(allOtherUnits[0])
+ this.push(featureGroup.filter(f => 'addr:unit' in f.properties)[0])
} else {
nonUnitFeature.properties['addr:flats'] = unitsToRanges(allOtherUnits)
// TODO should we set addr:flats:prefix from addr:unit:prefix?