Skip to content

Commit

Permalink
Add also to qgepdss\export.py and qgepsia405/export.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sjib committed May 7, 2024
1 parent 0527ba1 commit 60a269c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions qgepqwat2ili/qgepdss/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -3561,6 +3561,14 @@ def textpos_common(row, t_type, geojson_crs_def):
layer_name = label["properties"]["Layer"]
obj_id = label["properties"]["qgep_obj_id"]

print(f"label[properties]: {label['properties']}")

if not label["properties"]["LabelText"]:
logger.warning(
f"Label of object '{obj_id}' from layer '{layer_name}' is empty and will not be exported"
)
continue

if layer_name == "vw_qgep_reach":
if obj_id not in tid_for_obj_id["haltung"]:
logger.warning(f"Label for haltung `{obj_id}` exists, but that object is not part of the export")
Expand Down
8 changes: 8 additions & 0 deletions qgepqwat2ili/qgepsia405/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,14 @@ def textpos_common(row, t_type, geojson_crs_def):
layer_name = label["properties"]["Layer"]
obj_id = label["properties"]["qgep_obj_id"]

print(f"label[properties]: {label['properties']}")

if not label["properties"]["LabelText"]:
logger.warning(
f"Label of object '{obj_id}' from layer '{layer_name}' is empty and will not be exported"
)
continue

if layer_name == "vw_qgep_reach":
if obj_id not in tid_for_obj_id["haltung"]:
logger.warning(f"Label for haltung `{obj_id}` exists, but that object is not part of the export")
Expand Down

0 comments on commit 60a269c

Please sign in to comment.