aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/conflate.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/conflate.js b/bin/conflate.js
index 2330a7a..cec1d83 100755
--- a/bin/conflate.js
+++ b/bin/conflate.js
@@ -229,7 +229,14 @@ pipeline(
console.log(`Index OSM Address Polygons within each block`)
// for each OSM address polygon
+ let osmAddrPolygonIndex = 0
for (const osmAddrPolygon of osmAddrPolygons) {
+ osmAddrPolygonIndex++
+
+ if (process.stdout.isTTY && osmAddrPolygonIndex % 1000 === 0) {
+ process.stdout.write(` ${osmAddrPolygonIndex.toLocaleString()}\r`)
+ }
+
// find the blocks it might intersect
const candidateBlocks = blockIndex.search(...bbox(osmAddrPolygon))
// then test if it actually intersects