spatial-monorepo / editor/src / buildEditorIMDFArchive
Function: buildEditorIMDFArchive()
buildEditorIMDFArchive(
features,floorOrder?):IMDFArchive
Defined in: packages/editor/src/imdfValidationArchive.ts:185
Builds a valid synthetic IMDFArchive wrapper around the given raw editor features. See module doc for the mapping rules.
Parameters
features
Feature<Geometry, GeoJsonProperties>[]
floorOrder?
ReadonlyMap<string, number>
Optional floorId -> real vertical ordinal map (issue #995), sourced from the app's actual floor list (e.g. floorSlice.levels). When a floorId present in features has an entry here, that value is used as the level's ordinal. When this argument is omitted entirely, every level's ordinal falls back to encounter order and a one-time console warning is emitted, since encounter order does not necessarily match real floor stacking order.
Returns
IMDFArchive
