aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/conflate.js8
1 files changed, 8 insertions, 0 deletions
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