mirror of
https://github.com/ARUP-CAS/aiscr-qgis-amcr-viewer.git
synced 2026-10-12 22:07:34 +02:00
feature (wip): první krůčky logiky pro parsování PAS záznamů
- dosavadní logika parsování platná pro akce a lokality je podmíněna typ_dat - stub logiky parsování pro samostatné nálezy
This commit is contained in:
1 parent
27a0f4e9ea
commit
2ab3ace310
1 file changed
+13
@@ -451,6 +451,7 @@ def load_amcr_data(canvas, bb, filters=None,
|
||||
return ", ".join([str(x) for x in val if x])
|
||||
|
||||
# Process each downloaded metadata record
|
||||
if typ_dat in archeologicky_zaznam_l:
|
||||
for doc in docs:
|
||||
piani = doc.get('az_dj_pian', [])
|
||||
if not piani:
|
||||
@@ -716,6 +717,18 @@ def load_amcr_data(canvas, bb, filters=None,
|
||||
"AMČR", Qgis.MessageLevel.Warning
|
||||
)
|
||||
|
||||
elif typ_dat == "samostatny_nalez":
|
||||
for doc in docs:
|
||||
loc = g(doc, "loc", [])
|
||||
if not loc:
|
||||
continue
|
||||
|
||||
actions_with_geom += 1
|
||||
|
||||
sn_chranene = doc.get("samostatny_nalez_chranene_udaje") or {}
|
||||
|
||||
|
||||
|
||||
# ==========================================
|
||||
# D) LAYER CREATION (QGIS Memory Layers)
|
||||
# ==========================================
|
||||
|
||||
Reference in new issue
Block a user