-
Notifications
You must be signed in to change notification settings - Fork 0
exportImdfDataset coerces section/geofence features into unit #7
Copy link
Copy link
Open
Description
Summary
exportImdfDataset silently coerces non-level polygons (section, geofence, etc.) into unit exports and rewrites relationship parent feature types.
Evidence
src/lib/imdf/export.ts:450-452includes all non-level polygons inunitSourceFeatures.src/lib/imdf/export.ts:544-548exports all of those asfeature_type: "unit".src/lib/imdf/export.ts:639-643rewrites section/geofence parents tofeature_type: "unit"in generated relationships.
Why this is a bug
Feature typing is not preserved. A dataset containing sections or geofences is transformed into units on export, causing semantic corruption and lossy round trips.
Reproduction
- Build features containing
sectionand/orgeofencepolygons. - Call
exportImdfDataset(...). - Inspect
unit.geojsonandrelationship.geojson; section/geofence semantics are collapsed to unit.
Expected
Preserve each IMDF feature type in its proper collection and relationship references.
Impact
Loss of meaning and incorrect downstream behavior for consumers relying on section/geofence semantics.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels