spatial-monorepo / imdf/src / loadIMDF
Function: loadIMDF()
loadIMDF(
buffer,options?):Promise`<IMDFArchive>`
Defined in: packages/imdf/src/loader.ts:83
Load and parse a .imdf.zip ArrayBuffer into a typed IMDFArchive.
By default (options.validate unset or 'manifest') only the manifest layer is validated, matching this function's historical behavior — a manifest.json failure throws, but geometry and cross-feature problems in the rest of the archive are not checked. Pass { validate: 'full' } to additionally run IMDFValidator.validate() (geometry + cross-feature + feature-ID + level-coverage + opening-size checks) over the parsed archive before it is returned; any Violation-severity finding throws.
Parameters
buffer
ArrayBuffer
options?
Returns
Promise`<IMDFArchive>`
