Skip to content

Add local OpenAir airspace import and display - #211

Merged
Turbo87 merged 8 commits into
mainfrom
basic-airspace
Aug 2, 2026
Merged

Add local OpenAir airspace import and display#211
Turbo87 merged 8 commits into
mainfrom
basic-airspace

Conversation

@Turbo87

@Turbo87 Turbo87 commented Aug 2, 2026

Copy link
Copy Markdown
Owner

This adds display-only support for one locally imported OpenAir file. The core parses supported polygons, circles, and arcs into typed canonical polygons, rejects the complete import when parsing or geometry normalization fails, and publishes the active or unavailable state through the existing topic stream.

The Tauri shell owns native file selection and app-data persistence. It validates replacements before changing the active dataset, restores stored airspace at startup, exposes structured command errors, and projects immutable snapshots to GeoJSON through updraft://localhost/airspace.geojson.

The Settings screen can import, replace, and remove the file and shows localized status and failure states. The map renders the active dataset below traffic and ownship with class- and type-based styling.

Turbo87 added 8 commits August 3, 2026 00:32
This specifies polygon-only normalization with a 1 metre chord-error limit. It defines transactional source storage, typed localized errors, URI-boundary GeoJSON projection, and map rendering behavior.
This adds native file selection and file-system reads for desktop and Android. It commits validated source bytes before it activates the core dataset.

This makes source replacement and removal transactional around the authoritative source file. It returns structured command errors and rejects concurrent mutations.
This registers an asynchronous `updraft` URI handler that requests the current immutable airspace snapshot and serializes it outside the driver task.

This projects canonical polygons to GeoJSON with class and type properties, closes rings at the resource boundary, and returns an empty collection when inactive. It disables caching and reports a stopped driver as `503 Service Unavailable`.
This adds frontend state for the airspace status and connects import and removal commands through `UpdraftClient`.

The Settings screen shows inactive, active, and unavailable states. It disables concurrent actions and maps structured command errors to English and German messages. The browser fake cancels native import by default.
@Turbo87
Turbo87 merged commit ae4fd0d into main Aug 2, 2026
6 checks passed
@Turbo87
Turbo87 deleted the basic-airspace branch August 2, 2026 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant