aboutsummaryrefslogtreecommitdiff
path: root/bin/vicmap2osm.js
diff options
context:
space:
mode:
authorAndrew Harvey <andrew@alantgeo.com.au>2021-06-10 00:06:12 +1000
committerAndrew Harvey <andrew@alantgeo.com.au>2021-06-10 00:06:12 +1000
commit0d9bdd6a6e941a6d12518fab8bc0ff8019f1c08a (patch)
tree2bd2dfdda19d2eea40979784c4eb5495af649bc1 /bin/vicmap2osm.js
parentd06d4c3afaedf7848ea67eb4902c43cef7b81b4f (diff)
use Vicmap PFI ID as complex/building name feature id
Diffstat (limited to 'bin/vicmap2osm.js')
-rwxr-xr-xbin/vicmap2osm.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/vicmap2osm.js b/bin/vicmap2osm.js
index a45bc4e..e781ca7 100755
--- a/bin/vicmap2osm.js
+++ b/bin/vicmap2osm.js
@@ -64,6 +64,7 @@ const transform = new Transform({
if (feature.properties.COMPLEX) {
const complexFeature = {
type: 'Feature',
+ id: `${feature.properties.PFI}`,
properties: {
name: feature.properties.COMPLEX
},
@@ -82,6 +83,7 @@ const transform = new Transform({
if (feature.properties.BUILDING) {
const buildingFeature = {
type: 'Feature',
+ id: `${feature.properties.PFI}`,
properties: Object.assign({}, osm.properties, {
name: feature.properties.BUILDING
}),