diff options
-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) { |