Add local OpenAir airspace import and display - #211
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.