aboutsummaryrefslogtreecommitdiff
path: root/bin/conflate.js
diff options
context:
space:
mode:
authorAndrew Harvey <andrew@alantgeo.com.au>2021-07-04 20:51:31 +1000
committerAndrew Harvey <andrew@alantgeo.com.au>2021-07-04 20:51:31 +1000
commit9f969752e2406d5df0b63909b4c886400ac4653f (patch)
tree9f8b2246dc02f60f45ddc0190729c2e35eca19ae /bin/conflate.js
parentf13c60efaa68862872a7a927537924cf590f1e7a (diff)
remove tracing and non-uploaded tags
Diffstat (limited to 'bin/conflate.js')
-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