Repository navigation
feat(data): read AIXM 5.1/5.2 aeronautical data at an effective date (#2077) - #2819
Closed
flight1973 wants to merge 62 commits into
Closed
flight1973 wants to merge 62 commits into
flight1973 wants to merge 62 commits into
Conversation
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.
Closes #2077.
This adds a reader for AIXM 5.1, 5.1.1 and 5.2 messages, and for the FAA's 28-day NASR subscriber files of AIXM 5.1. Add Data opens them as
.xmlor.gml, by their root.What it does
"at"(today when left out), from its time slices: the latest correction of each, the BASELINE in force, PERMDELTAs since, and TEMPDELTAs in force over it. Features not in force, withdrawn, canceled, given only as changes, or with a time slice that may apply on the date and can't be read (or ends before it begins, or has no period or instant of the kind it needs) are left out and counted. A feature with no BASELINE is shown as its nearest SNAPSHOT, unchanged, with a notice. This follows the AIXM Temporality Concept 1.1.authority_1_type), numbered when a record repeats anywhere in the layer, with units,nilReason, references (identifier and title) and other attributes. A feature whose shapes sit in records (a light system's lights, a marking's elements) gives a row per record, as an obstacle gives a row per part.ArcByCenterPointangles follow the AIXM guidance (bearings from true north in a latitude-first system).pathTypesays (a geodesic or a rhumb line); one whose ends can't both be found is kept without a line, and said. FAA XPath references are reduced to thegml:idthey name, NAD83 (CRS83) is read as WGS 84, and empty end dates are read as open, each with a notice.pointProperty) are read as no positions, drawing notes are also counted for rows cut by the memory cap, a feature whose only SNAPSHOT is after the date may not have existed then (said), a SNAPSHOT's period is read at its start (said) and its end isn't looked at, a service download given"at"is refused only once its pages are read, a name repeated in a file (agml:id, which XML doesn't allow) can leave a route without a line (said), a ring naming a border by the curve of another time slice isn't drawn (said) even where that curve is the same line, theidentifierand reference columns keep the file's spelling of a UUID, and a few notices are imprecise for malformed dates.Tested on
Reaches
layer.addData/addUrl/addDownload/addDataText/addDataBytes, andinfo.fileLayers."at"is in their parameter descriptions, so the Assistant and MCP see it, and it is passed on for a plugin's download. The phone opens the same Add Data (read as it is today). One Undo step removes the layers a message added, and Redo brings them back."at"given for any other file is refused, not ignored.info.fileLayersreads the shapes too, so it lists what a read gives, and runs on the UI thread as it does for CityGML.+99:99) is no longer read as a date."at"works through commands),"at"for a message inside a zip (read as it is today, with its own memory allowance, as a CityGML member), and Digital NOTAM events.Sources. AIXM Temporality Concept 1.1, the AIXM coding guidance pages on the AIXM wiki ("Arc by Centre Point", "Geoborder for Airspace Border", "Parallels", "Vertical Limits", "Multiple volumes"), the AIXM 5.1.1 schema and the GML 3.2.1 schema. I didn't follow any other project's code.
Run on my Mac, on the branch merged with main (46b071b): the whole workspace's tests, formatting, clippy,
layers,attribution,rows,test-hygieneand the browser build. All pass but two tests that fail the same way on main here:mapview::tests::a_moving_flat_maps_gap_frame_is_drawn_off_the_ui_thread(#2821, under plaincargo test) andlayout_title::a_wrapped_map_title_is_sized_for_its_drawn_lines, whose names measure differently in the Mac's fonts.cargo xtask memoryruns on Linux only, so I haven't run it.Screenshots are in a comment (taken before the review fixes): the Donlon sample at 2026-01-15, its airspace table, and DFS airspace whose borders follow Germany's by reference.
Summary by CodeRabbit