Merge pull request 'fix (hopefully) topo conversion script' (#203) from wagga into main
Reviewed-on: #203
This commit is contained in:
commit
05efd94d4d
9
package.json
Normal file
9
package.json
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"name": "data-to-topo",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"type": "module",
|
||||||
|
"main": "process.js",
|
||||||
|
"dependencies": {
|
||||||
|
"csv-parser": "^3.2.0"
|
||||||
|
}
|
||||||
|
}
|
|
@ -29,7 +29,7 @@ fs.createReadStream(`${data_directory}/library_services_information.csv`)
|
||||||
try {
|
try {
|
||||||
fs.writeFileSync(`${data_directory}/boundaries.topo.json`, JSON.stringify(data))
|
fs.writeFileSync(`${data_directory}/boundaries.topo.json`, JSON.stringify(data))
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.err('ERROR writing topo file')
|
console.error('ERROR writing topo file')
|
||||||
}
|
}
|
||||||
console.log('topo updated')
|
console.log('topo updated')
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue