diff options
author | Andrew Harvey <andrew@alantgeo.com.au> | 2021-06-30 22:18:49 +1000 |
---|---|---|
committer | Andrew Harvey <andrew@alantgeo.com.au> | 2021-06-30 22:18:49 +1000 |
commit | fce0c8160d2092fe9829f343185b76be6143e19f (patch) | |
tree | df6ffd0c555659ec99389eff300943771ae93e7e /bin/reduceDuplicates.js | |
parent | 23746caae8777b3db7e9ff10ecb96016ca3806db (diff) |
code comments
Diffstat (limited to 'bin/reduceDuplicates.js')
-rwxr-xr-x | bin/reduceDuplicates.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/reduceDuplicates.js b/bin/reduceDuplicates.js index 7eaba30..0abef54 100755 --- a/bin/reduceDuplicates.js +++ b/bin/reduceDuplicates.js @@ -75,9 +75,10 @@ const reduce = new Transform({ process.stdout.write(` ${reduceIndex.toLocaleString()} / ${sourceCount.toLocaleString()} (${Math.round(reduceIndex / sourceCount * 100)}%)\r`) } + // groupedFeatures is a list of features which all shared the same attributes, these may or may not share the same geometry const groupedFeatures = features[key] if (groupedFeatures.length === 1) { - // address not duplicated + // address not duplicated, pass through as unique this.push(groupedFeatures[0]) } else { |