diff options
author | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-25 21:55:32 +1000 |
---|---|---|
committer | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-25 21:55:32 +1000 |
commit | c6fa3906ae4d45a4186c3340faeb828933c900e5 (patch) | |
tree | 382bea2f6ea536162ffad98f0e0d16d7a20ccd4d /bin | |
parent | a618d9ddda3a310ddde67db8d319681a62803f15 (diff) |
check id found in blocks, due to bug in upstream library
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/conflate.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/conflate.js b/bin/conflate.js index 225dd89..4b7a156 100755 --- a/bin/conflate.js +++ b/bin/conflate.js @@ -141,6 +141,10 @@ const conflate = new Transform({ outputStreams.noOSMAddressWithinBlock.write(feature) } else { // other OSM addresses found within this block, so need to conflate + if (!('id' in block)) { + console.error('Expected id for block') + process.exit(1) + } // see if any address with the same number and street in the same block if (block.id in osmAddrPoints || block.id in osmAddrPolygonsByBlock) { |