diff --git a/qBRA/dockwidgets/ils/ils_llz_dockwidget.py b/qBRA/dockwidgets/ils/ils_llz_dockwidget.py index 86f7180..ff57d7a 100644 --- a/qBRA/dockwidgets/ils/ils_llz_dockwidget.py +++ b/qBRA/dockwidgets/ils/ils_llz_dockwidget.py @@ -5,6 +5,7 @@ from qgis.utils import iface import os +import re UI_PATH = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), "ui", "ils", "ils_llz_panel.ui") @@ -160,7 +161,7 @@ def get_parameters(self): # Site elevation comes directly from UI numeric parameter site_elev = float(self._widget.spnSiteElev.value()) - # Runway remark: try to find a sensible field, else use FID + # Runway remark: try to find a sensible field; default to RWYXX fields = navaid_layer.fields() rwy_field_candidates = ["runway", "rwy", "thr_rwy"] rwy_idx = -1 @@ -169,11 +170,31 @@ def get_parameters(self): if idx >= 0: rwy_idx = idx break + def _format_runway(val): + s = str(val).strip().upper() + m = re.search(r"(? - e.g. RWY01 or custom label + e.g. RWYXX or custom label