Skip to content

Commit

Permalink
issue #678 support shapely in load collection spatial extent
Browse files Browse the repository at this point in the history
  • Loading branch information
ElienVandermaesenVITO committed Dec 10, 2024
1 parent 4db1718 commit 146f35e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openeo/rest/datacube.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def load_collection(
valid_geojson_types = [
"Polygon", "MultiPolygon", "GeometryCollection", "FeatureCollection"
]
if spatial_extent and not isinstance(spatial_extent, dict):
if spatial_extent and not (isinstance(spatial_extent, dict) and spatial_extent.keys() & {"west", "east", "north", "south"}):
spatial_extent = _get_geometry_argument(argument=spatial_extent,valid_geojson_types=valid_geojson_types,connection=connection)

arguments = {
Expand Down

0 comments on commit 146f35e

Please sign in to comment.