import json from pathlib import Path # Check AidsMonitoring features.geojson f = json.loads(Path(r"C:\AidsMonitoring\charts\BAHÍA_DE_CARTAGENA\features.geojson").read_text(encoding="utf-8")) print("=== AidsMonitoring features.geojson ===") for feat in f["features"]: p = feat["properties"] if p.get("orient") is not None: print(f" layer={p.get('layer')} name={p.get('name')} orient={p['orient']} aid_type={p.get('aid_type')}") if p.get("aid_type") in ("LEADING_LINE", "LIGHT_POINT"): print(f" [LIGHT] name={p.get('name')} orient={p.get('orient')} light_desc={p.get('light_desc')}") # Check LIGHTS.csv for any ORIENT values import csv print("\n=== LIGHTS.csv ORIENT column ===") with open(r"D:\Proyectos Software\QGISS57Converter\capas_ctg\LIGHTS.csv", newline="", encoding="utf-8-sig") as f2: for row in csv.DictReader(f2): orient = row.get("ORIENT","").strip() print(f" {row['OBJNAM']:35s} feat_type={row['feat_type']:8s} ORIENT={orient!r}")