Skip to content

Commit

Permalink
fix: check lowercase of format when saving DelayedVector Open-EO/open…
Browse files Browse the repository at this point in the history
…eo-geopyspark-driver/#620
  • Loading branch information
JeroenVerstraelen committed May 17, 2024
1 parent 29eb784 commit 2a7fcfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openeo_driver/save_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ def to_save_result(data: Any, format: Optional[str] = None, options: Optional[di
elif isinstance(data, DriverVectorCube):
return VectorCubeResult(cube=data, format=format, options=options)
elif isinstance(data, DelayedVector):
if format is None or format == "json":
if format is None or format.lower() == "json":
# TODO #114 EP-3981 add vector cube support: keep features from feature collection
geojsons = [mapping(geometry) for geometry in data.geometries_wgs84]
return JSONResult(geojsons, format=format, options=options)
Expand Down

0 comments on commit 2a7fcfa

Please sign in to comment.