fgb-vt - v1.0.6
    Preparing search index...

    Function checkFile

    • Verify a FlatGeobuf file completely: header, every spatial index node, and (unless quick) every feature. Format problems are reported, not thrown.

      Parameters

      • connector: Connector

        Connector to read through.

      • path: string

        Connector-specific path of the file.

      • options: CheckOptions = {}

        Scope and limits of the check.

      Returns Promise<CheckReport>

      The report; ok is false if any error was found.

      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);