Skip to content

Commit

Permalink
Handle if geometry is given as string
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusStrobl committed Apr 5, 2024
1 parent fdc0c37 commit cd71eda
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions processes/tool_vforwater_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ def execute(self, data):
if not isinstance(reference_area, dict):
reference_area = json.loads(reference_area)

if 'geometry' in reference_area and isinstance(reference_area['geometry'], str):
reference_area['geometry'] = json.loads(reference_area['geometry'])

dataset_ids = timeseries_ids
dataset_ids.extend(raster_ids)
if len(dataset_ids) == 0:
Expand Down

0 comments on commit cd71eda

Please sign in to comment.