Parse Spaten-encoded geodata.
npm install spaten-parser
const {readFileSync} = require('fs')
const parse = require('spaten-parser')
const buf = readFileSync('path/to/file.spaten')
for (const item of parse(buf)) {
console.log(item)
}
parse
is a generator function, so it returns an iterator.
If you have a question or need support using spaten-parser
, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, use the issues page.