aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Harvey <andrew@alantgeo.com.au>2022-05-21 14:42:21 +1000
committerAndrew Harvey <andrew@alantgeo.com.au>2022-05-21 14:42:21 +1000
commitc668a54f9dff33a4784a757cfc531d7e3c848e4b (patch)
treeaad5f91ea6a911cbe9f334fa08144250938434eb
parente369f3027a91204c4b8ef29e0d98ceeaa0911098 (diff)
fix BUILDING_NAME and COMPLEX_NAME longer GDB attributes
-rwxr-xr-xbin/vicmap2osm.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/vicmap2osm.js b/bin/vicmap2osm.js
index f637fd4..d2c676b 100755
--- a/bin/vicmap2osm.js
+++ b/bin/vicmap2osm.js
@@ -62,12 +62,12 @@ const transform = new Transform({
}
}
- if (feature.properties.COMPLEX) {
+ if (feature.properties.COMPLEX_NAME) {
const complexFeature = {
type: 'Feature',
id: `${feature.properties.PFI}`,
properties: {
- name: feature.properties.COMPLEX
+ name: feature.properties.COMPLEX_NAME
},
geometry: feature.geometry
}
@@ -81,12 +81,12 @@ const transform = new Transform({
includeDerivableProperties: argv.preserveDerivableProperties
})
- if (feature.properties.BUILDING) {
+ if (feature.properties.BUILDING_NAME) {
const buildingFeature = {
type: 'Feature',
id: `${feature.properties.PFI}`,
properties: Object.assign({}, osm.properties, {
- name: feature.properties.BUILDING
+ name: feature.properties.BUILDING_NAME
}),
geometry: osm.geometry
}