Feature/23 naming defaults #29
Open
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.
Summary
Adjusts the output naming defaults to use RWYXX when a runway field is missing.
Normalizes runway identifiers to a consistent format RWYNN with leading zero and optional suffix L/R/C (e.g., RWY01, RWY09L).
Keeps the previously added “Output name (optional)” behavior: user input is concatenated with the selected facility label; if absent, the normalized runway remark is used.
Changes
Default remark and normalization helper added in ils_llz_dockwidget.py
Default to RWYXX when no runway field is present.
Parse and normalize runway values found in typical fields (runway, rwy, thr_rwy) to RWYNN with optional L/R/C.
Behavior
When a runway value exists: RWYNN(+L/R/C) is used and concatenated with the facility label for display names.
When missing: RWYXX is used and concatenated with the facility label.
The UI “Output name (optional)” still overrides the base name if provided.
Verification
In QGIS ≥ 3.0:
Select a navaid without runway field → Calculate → Layer name should include RWYXX - BRA_areas.
Select a navaid with runway like 9, 09L, or RWY9R → Calculate → Layer name should include RWY09, RWY09L, RWY09R respectively.
Enter a custom Output name → Calculate → Layer name should include - BRA_areas.
Linked Issue
Closes #23 #22