Verify a FlatGeobuf file completely: header, every spatial index node, and (unless quick) every feature. Format problems are reported, not thrown.
quick
Connector to read through.
Connector-specific path of the file.
Scope and limits of the check.
The report; ok is false if any error was found.
ok
false
If the file cannot be read (missing, no range support, changed while being checked).
import { checkFile, LocalConnector } from '@geozelot/fgb-vt';const report = await checkFile(new LocalConnector(), './buildings.fgb');if (!report.ok) console.error(report.problems); Copy
import { checkFile, LocalConnector } from '@geozelot/fgb-vt';const report = await checkFile(new LocalConnector(), './buildings.fgb');if (!report.ok) console.error(report.problems);
Verify a FlatGeobuf file completely: header, every spatial index node, and (unless
quick) every feature. Format problems are reported, not thrown.