Skip to content

Commit

Permalink
Implement UI for insights as per wireframes
Browse files Browse the repository at this point in the history
Fixes #706
  • Loading branch information
timlinux committed Dec 16, 2024
1 parent 20b7c53 commit 583043d
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion geest/gui/views/treeview.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,37 @@ def loadJsonData(self, json_data):
"error": analysis_error,
"error_file": analysis_error_file,
}

for prefix in [
"aggregation",
"population",
"point_mask",
"polygon_mask",
"raster_mask",
]:
analysis_attributes[f"{prefix}_layer"] = json_data.get(
f"{prefix}_layer", ""
)
analysis_attributes[f"{prefix}_layer_name"] = json_data.get(
f"{prefix}_layer_name", ""
)
analysis_attributes[f"{prefix}_layer_source"] = json_data.get(
f"{prefix}_layer_source", ""
)
analysis_attributes[f"{prefix}_layer_provider_type"] = json_data.get(
f"{prefix}_layer_provider_type", ""
)
analysis_attributes[f"{prefix}_layer_crs"] = json_data.get(
f"{prefix}_layer_crs", ""
)
analysis_attributes[f"{prefix}_layer_wkb_type"] = json_data.get(
f"{prefix}_layer_wkb_type", ""
)
analysis_attributes[f"{prefix}_layer_id"] = json_data.get(
f"{prefix}_layer_id", ""
)
analysis_attributes[f"{prefix}_shapefile"] = json_data.get(
f"{prefix}_shapefile", ""
)
# Create the "Analysis" item
status = ""
weighting = ""
Expand Down

0 comments on commit 583043d

Please sign in to comment.