-
Notifications
You must be signed in to change notification settings - Fork 0
Relationship validation/schema is not IMDF compliant #3
Copy link
Copy link
Open
Description
Summary
The in-app IMDF validator rejects relationship features that follow the current IMDF relationship model.
Evidence
src/lib/imdf/validate.ts:115hard-requiresrelationshipgeometry to benull.src/lib/imdf/validate.ts:192validates a requiredreferencesarray for relationship features.src/lib/imdf/featureCatalog.ts:209defines relationship required fields ascategory, numericdirection, andreferences.
Why this is a bug
Current IMDF relationship features are modeled with origin, intermediary, and destination references, and geometry may be null or present as GeoJSON. The current validator/schema rejects those features.
Reference: https://docs.ogc.org/cs/20-094/relationship/index.html
Reproduction
- Create/import a relationship feature that uses
origin+destinationreferences (noreferencesarray), withdirectionas"directed"or"undirected". - Run through
validateImdfDatasetFiles(directly or via archive import). - Observe errors for missing
properties.referencesand/or geometry requirements.
Expected
- Accept IMDF relationship fields (
origin, optionalintermediary,destination, string direction enum). - Allow relationship geometry to be
nullor a valid GeoJSON geometry.
Impact
Interoperability with spec-conformant IMDF datasets is broken; valid relationship data is rejected.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels