Summary
Archive export emits relationship features in a non-standard custom format (contains, numeric direction, references[]) instead of IMDF relationship properties.
Evidence
src/lib/imdf/archiveExport.ts:602-616 generates relationship features with:
category: "contains"
direction: 1
references: [{id, feature_type}, ...]
src/lib/imdf/archiveExport.ts:606 forces relationship geometry to null.
Why this is a bug
This does not match IMDF relationship property structure (origin, optional intermediary, destination, string direction enum). Exported archives may fail downstream validation or lose interoperability with IMDF tooling.
Reference: https://docs.ogc.org/cs/20-094/relationship/index.html
Reproduction
- Export a building archive with features that produce containment relationships.
- Inspect
relationship.geojson.
- Observe custom
references[] + numeric direction payload instead of IMDF relationship fields.
Expected
Export relationships in IMDF-compliant structure so archives are portable across IMDF consumers.
Impact
Generated datasets are not fully interoperable and can be rejected by standards-based importers.
Summary
Archive export emits relationship features in a non-standard custom format (
contains, numeric direction,references[]) instead of IMDF relationship properties.Evidence
src/lib/imdf/archiveExport.ts:602-616generates relationship features with:category: "contains"direction: 1references: [{id, feature_type}, ...]src/lib/imdf/archiveExport.ts:606forces relationship geometry tonull.Why this is a bug
This does not match IMDF relationship property structure (
origin, optionalintermediary,destination, string direction enum). Exported archives may fail downstream validation or lose interoperability with IMDF tooling.Reference: https://docs.ogc.org/cs/20-094/relationship/index.html
Reproduction
relationship.geojson.references[]+ numeric direction payload instead of IMDF relationship fields.Expected
Export relationships in IMDF-compliant structure so archives are portable across IMDF consumers.
Impact
Generated datasets are not fully interoperable and can be rejected by standards-based importers.