Skip to content

spatial-monorepo


spatial-monorepo / imdf/src / LoadIMDFOptions

Interface: LoadIMDFOptions

Defined in: packages/imdf/src/loader.ts:45

Options controlling how much validation loadIMDF runs before returning the parsed archive.

Properties

validate?

optional validate?: "manifest" | "full"

Defined in: packages/imdf/src/loader.ts:57

  • 'manifest' (default): only manifest.json is validated (version, created, language, origin). This is the loader's historical behavior and will not throw on geometry or cross-feature problems.
  • 'full': after parsing, the archive is additionally run through IMDFValidator.validate() — per-feature geometry checks and cross-feature integrity (dangling references, level coverage, opening sizes, feature ID format, GeoJSON file shape). Any Violation-severity finding throws; Warning-severity findings are surfaced only via IMDFValidator.validate() and do not fail the load.

Released under commercial licensing.