aboutsummaryrefslogtreecommitdiff
path: root/bin/conflate.js
diff options
context:
space:
mode:
authorAndrew Harvey <andrew@alantgeo.com.au>2021-05-20 14:28:18 +1000
committerAndrew Harvey <andrew@alantgeo.com.au>2021-05-20 14:28:18 +1000
commita5f57f9d603aaccaaad35ecd268920e0f3a1fdf4 (patch)
treede153ca539f457d4878a1d05cbaff64c39ad361c /bin/conflate.js
parenteb5b09132ec243ffe80fd594446b234d6268cabc (diff)
addresses where interpolation line exists are fine to import
Diffstat (limited to 'bin/conflate.js')
-rwxr-xr-xbin/conflate.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/conflate.js b/bin/conflate.js
index 09667c5..0385c18 100755
--- a/bin/conflate.js
+++ b/bin/conflate.js
@@ -175,10 +175,12 @@ const conflate = new Transform({
outputStreams.noExactMatch.write(feature)
}
} else {
- // block id not found in osmAddrPoints or osmAddrPolygonsByBlock, meaning there are no osmAddress points or polygons in this block,
- // maybe there was an address as a linear way?
- // we ignore address interpolation lines and only look at the endpoint nodes from the interpolation way
- console.log(`Block ID ${block.id} not found when expected for `, JSON.stringify(feature), JSON.stringify(block))
+ // block id not found in osmAddrPoints or osmAddrPolygonsByBlock,
+ // however the block was found to be containing OSM addresses
+ // this likely happens when there is an address on a linear way like address interpolation line
+ // given this import plans to replace address interpolation lines, then output as fine to import
+
+ outputStreams.noOSMAddressWithinBlock.write(feature)
}
}
}