From 9f969752e2406d5df0b63909b4c886400ac4653f Mon Sep 17 00:00:00 2001 From: Andrew Harvey Date: Sun, 4 Jul 2021 20:51:31 +1000 Subject: remove tracing and non-uploaded tags --- bin/conflate.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bin/conflate.js') diff --git a/bin/conflate.js b/bin/conflate.js index 607be72..de4022b 100755 --- a/bin/conflate.js +++ b/bin/conflate.js @@ -131,6 +131,14 @@ const conflate = new Transform({ process.stdout.write(` ${sourceCount.toLocaleString()}\r`) } + // remove tracing properties + delete feature.properties._pfi + + // remove all addr:* attributes which there was some opposition to including on talk-au + delete feature.properties['addr:suburb'] + delete feature.properties['addr:postcode'] + delete feature.properties['addr:state'] + // find which block this vicmap address is in const results = lookupBlocks.search(...feature.geometry.coordinates.slice(0, 2), 1) const block = results ? (results.type === 'FeatureCollection' ? (results.features ? results.features[0] : null) : results) : null -- cgit v1.2.3