import json
from pathlib import Path

for chart in ["BARRANQUILLA", "BAHÍA_DE_CARTAGENA"]:
    p = Path(r"D:\Proyectos Software\AR ECDIS\webecdis\data\charts\manual") / chart / "LIGHTS.geojson"
    if not p.exists():
        print(f"{chart}: no LIGHTS.geojson"); continue
    feats = json.loads(p.read_text(encoding="utf-8"))["features"]
    with_orient = [f for f in feats if f["properties"].get("ORIENT") is not None]
    print(f"\n{chart}: {len(with_orient)}/{len(feats)} features have ORIENT")
    for f in with_orient[:6]:
        pr = f["properties"]
        print(f"  {pr.get('OBJNAM','?'):30s}  ORIENT={pr['ORIENT']}")
