Describe the layout
Start with the LAS layout, then let the decoder derive the fields it needs for the current record format.
import { createLasDecodePlan, decodeLasRecords, lasLayout } from '@voxelkloud/format-las'
const layout = lasLayout({ format: 3, pointSize: 34, bounds })
const plan = createLasDecodePlan(layout, { computeBounds: true })
const decoded = decodeLasRecords(plan, node, records, { computeBounds: true })