diff options
author | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-27 12:31:52 +1000 |
---|---|---|
committer | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-27 12:31:52 +1000 |
commit | b0e7b9eb118cbbc019cd210b24392efa5e5908fa (patch) | |
tree | 4727541351f7070a87c69c918900267655c4ca34 /bin/conflate.js | |
parent | 72da1088d0803da3925c55831f0adf7f92e19acf (diff) |
clean conflate
Diffstat (limited to 'bin/conflate.js')
-rwxr-xr-x | bin/conflate.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/conflate.js b/bin/conflate.js index 76edeea..c64706f 100755 --- a/bin/conflate.js +++ b/bin/conflate.js @@ -1,7 +1,7 @@ #!/usr/bin/env node /** - * Prepare import candidates by conflating with existing addresses in OSM + * Conflate processed Vicmap addresses with existing addresses in OSM */ const fs = require('fs') @@ -77,7 +77,6 @@ const osmAddrPolygonsByBlock = { 0: [] // this one is for any polygons not within a block } - // find OSM Addresses and store them // polygons go into a simple array, which later we create a point in polygon index for // points and lines a simple object index by block id @@ -160,6 +159,7 @@ const conflate = new Transform({ osmAddrWithinBlock.push(osmAddrPolygonsByBlock[block.id][i]) } } + const matches = osmAddrWithinBlock.filter(osmAddr => { const osmStreet = osmAddr.properties['addr:street'] |