Skip to content

Commit

Permalink
fix for process graph without save_result generating DriverVectorCube
Browse files Browse the repository at this point in the history
  • Loading branch information
jdries committed May 22, 2023
1 parent 33ddfab commit b5ea93e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions openeogeotrellis/deploy/batch_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -1069,6 +1069,11 @@ def run_job(
format_options["batch_mode"] = True
result = ImageCollectionResult(cube=result, format='GTiff', options=format_options)

if isinstance(result, DriverVectorCube):
format_options = job_specification.get('output', {})
format_options["batch_mode"] = True
result = VectorCubeResult(cube=result, format='GTiff', options=format_options)

if not isinstance(result, SaveResult) and not isinstance(result,List): # Assume generic JSON result
result = JSONResult(result)

Expand Down

0 comments on commit b5ea93e

Please sign in to comment.