From c6fa3906ae4d45a4186c3340faeb828933c900e5 Mon Sep 17 00:00:00 2001 From: Andrew Harvey Date: Tue, 25 May 2021 21:55:32 +1000 Subject: check id found in blocks, due to bug in upstream library --- bin/conflate.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin/conflate.js') 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) { -- cgit v1.2.3