mirror of
https://github.com/ARUP-CAS/aiscr-qgis-amcr-viewer.git
synced 2026-06-19 04:12:55 +02:00
Added logic for filtering based on PIAN accuracy
Features with a "location by cadastral area" attribute are disabled by default.
This commit is contained in:
@@ -187,6 +187,7 @@ def load_amcr_data(canvas, bb, filters=None):
|
||||
for dj in djs:
|
||||
if filters and filters.get('posevidence') == 'true' and dj.get('dj_negativni_jednotka') is True:
|
||||
continue
|
||||
|
||||
dj_meta = meta.copy()
|
||||
dj_meta['dj_id'] = dj.get('ident_cely')
|
||||
dj_typ = dj.get('dj_typ')
|
||||
@@ -282,7 +283,7 @@ def load_amcr_data(canvas, bb, filters=None):
|
||||
pid = doc.get('ident_cely', '')
|
||||
if pid not in pian_lookup:
|
||||
continue
|
||||
|
||||
|
||||
meta = pian_lookup[pid]
|
||||
|
||||
# Geometry processing
|
||||
@@ -301,6 +302,9 @@ def load_amcr_data(canvas, bb, filters=None):
|
||||
pian_presnost = tr_code(str(doc.get('pian_presnost', '')))
|
||||
pian_typ = tr_code(str(doc.get('pian_typ', '')))
|
||||
|
||||
if filters and filters.get('f_pian_presnost') and doc.get('pian_presnost') not in filters.get('f_pian_presnost'):
|
||||
continue
|
||||
|
||||
if wkt:
|
||||
geom = QgsGeometry.fromWkt(wkt)
|
||||
if geom.isGeosValid():
|
||||
|
||||
Reference in New Issue
Block a user