diff options
author | Andrew Harvey <andrew@alantgeo.com.au> | 2021-06-10 00:06:12 +1000 |
---|---|---|
committer | Andrew Harvey <andrew@alantgeo.com.au> | 2021-06-10 00:06:12 +1000 |
commit | 0d9bdd6a6e941a6d12518fab8bc0ff8019f1c08a (patch) | |
tree | 2bd2dfdda19d2eea40979784c4eb5495af649bc1 /bin/vicmap2osm.js | |
parent | d06d4c3afaedf7848ea67eb4902c43cef7b81b4f (diff) |
use Vicmap PFI ID as complex/building name feature id
Diffstat (limited to 'bin/vicmap2osm.js')
-rwxr-xr-x | bin/vicmap2osm.js | 2 |
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 }), |