diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/conflate.js | 4 | ||||
-rwxr-xr-x | bin/reduceDuplicates.js | 4 | ||||
-rwxr-xr-x | bin/reduceOverlap.js | 6 | ||||
-rwxr-xr-x | bin/reduceRangeDuplicates.js | 6 | ||||
-rwxr-xr-x | bin/vicmap2osm.js | 2 |
5 files changed, 11 insertions, 11 deletions
diff --git a/bin/conflate.js b/bin/conflate.js index f2b5328..cc39ec0 100755 --- a/bin/conflate.js +++ b/bin/conflate.js @@ -83,7 +83,7 @@ const filterOSMAddrPoly = new Transform({ osmAddrCount++ if (process.stdout.isTTY && osmAddrCount % 10000 === 0) { - process.stdout.write(` ${osmAddrCount / 1000}k\r`) + process.stdout.write(` ${osmAddrCount.toLocaleString()}\r`) } if (feature && feature.geometry && feature.geometry.type) { @@ -122,7 +122,7 @@ const conflate = new Transform({ sourceCount++ if (process.stdout.isTTY && sourceCount % 10000 === 0) { - process.stdout.write(` ${sourceCount / 1000}k\r`) + process.stdout.write(` ${sourceCount.toLocaleString()}\r`) } // find which block this vicmap address is in diff --git a/bin/reduceDuplicates.js b/bin/reduceDuplicates.js index 985a0e1..0880abf 100755 --- a/bin/reduceDuplicates.js +++ b/bin/reduceDuplicates.js @@ -41,7 +41,7 @@ const index = new Transform({ sourceCount++ if (process.stdout.isTTY && sourceCount % 10000 === 0) { - process.stdout.write(` ${sourceCount / 1000}k\r`) + process.stdout.write(` ${sourceCount.toLocaleString()}\r`) } const key = [ @@ -71,7 +71,7 @@ const reduce = new Transform({ transform(key, encoding, callback) { reduceIndex++ if (process.stdout.isTTY && reduceIndex % 10000 === 0) { - process.stdout.write(` ${reduceIndex / 1000}k / ${Math.round(sourceCount / 1000)}k (${Math.round(reduceIndex / sourceCount * 100)}%)\r`) + process.stdout.write(` ${reduceIndex.toLocaleString()} / ${sourceCount.toLocaleString()} (${Math.round(reduceIndex / sourceCount * 100)}%)\r`) } const groupedFeatures = features[key] diff --git a/bin/reduceOverlap.js b/bin/reduceOverlap.js index ae5f1dc..40b4708 100755 --- a/bin/reduceOverlap.js +++ b/bin/reduceOverlap.js @@ -46,7 +46,7 @@ const index = new Transform({ if (!argv.quiet) { if (process.stdout.isTTY && sourceCount % 10000 === 0) { - process.stdout.write(` ${sourceCount / 1000}k\r`) + process.stdout.write(` ${sourceCount.toLocaleString()}\r`) } } @@ -72,7 +72,7 @@ const reduce = new Transform({ reduceIndex++ if (!argv.quiet) { if (process.stdout.isTTY && reduceIndex % 10000 === 0) { - process.stdout.write(` ${reduceIndex / 1000}k / ${Math.round(sourceCount / 1000)}k (${Math.round(reduceIndex / sourceCount * 100)}%)\r`) + process.stdout.write(` ${reduceIndex.toLocaleString()} / ${sourceCount.toLocaleString()} (${Math.round(reduceIndex / sourceCount * 100)}%)\r`) } } @@ -185,7 +185,7 @@ const limitValues = new Transform({ limitValuesIndex++ if (!argv.quiet) { if (limitValuesIndex % 10000 === 0) { - process.stdout.write(` ${limitValuesIndex / 1000}k / ${Math.round(sourceCount / 1000)}k (${Math.round(limitValuesIndex / sourceCount * 100)}%)\r`) + process.stdout.write(` ${limitValuesIndex.toLocaleString()} / ${sourceCount.toLocaleString()} (${Math.round(limitValuesIndex / sourceCount * 100)}%)\r`) } } this.push(valueLimits(feature)) diff --git a/bin/reduceRangeDuplicates.js b/bin/reduceRangeDuplicates.js index f51ae0a..89f8a11 100755 --- a/bin/reduceRangeDuplicates.js +++ b/bin/reduceRangeDuplicates.js @@ -65,7 +65,7 @@ const index = new Transform({ sourceCount++ if (process.stdout.isTTY && sourceCount % 10000 === 0) { - process.stdout.write(` ${sourceCount / 1000}k\r`) + process.stdout.write(` ${sourceCount.toLocaleString()}\r`) } const isRange = feature.properties['addr:housenumber'].split('-').length > 1 @@ -111,7 +111,7 @@ const reduceRange = new Transform({ transform(feature, encoding, callback) { reduceRangeIndex++ if (process.stdout.isTTY && reduceRangeIndex % 10000 === 0) { - process.stdout.write(` ${reduceRangeIndex / 1000}k / ${Math.round(sourceCount / 1000)}k (${Math.round(reduceRangeIndex / sourceCount * 100)}%)\r`) + process.stdout.write(` ${reduceRangeIndex.toLocaleString()} / ${sourceCount.toLocaleString()} (${Math.round(reduceRangeIndex / sourceCount * 100)}%)\r`) } const isRange = feature.properties['addr:housenumber'].split('-').length > 1 @@ -233,7 +233,7 @@ const reduceNonRange = new Transform({ transform(feature, encoding, callback) { reduceNonRangeIndex++ if (process.stdout.isTTY && reduceNonRangeIndex % 10000 === 0) { - process.stdout.write(` ${reduceNonRangeIndex / 1000}k / ${Math.round(sourceCount / 1000)}k (${Math.round(reduceNonRangeIndex / sourceCount * 100)}%)\r`) + process.stdout.write(` ${reduceNonRangeIndex.toLocaleString()} / ${sourceCount.toLocaleString()} (${Math.round(reduceNonRangeIndex / sourceCount * 100)}%)\r`) } const isRange = feature.properties['addr:housenumber'].split('-').length > 1 diff --git a/bin/vicmap2osm.js b/bin/vicmap2osm.js index 954fdff..97139ab 100755 --- a/bin/vicmap2osm.js +++ b/bin/vicmap2osm.js @@ -44,7 +44,7 @@ const transform = new Transform({ if (!argv.quiet) { if (process.stdout.isTTY && sourceCount % 10000 === 0) { - process.stdout.write(` ${sourceCount / 1000}k\r`) + process.stdout.write(` ${sourceCount.toLocaleString()}\r`) } } |