Skip to content

Commit 2b9fcab

Browse files
committed
#334 compute geometry bbox in target crs if possible
1 parent 1a02da8 commit 2b9fcab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_views_execute.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
from openeo_driver.users import User
5050
from openeo_driver.util.geometry import (
5151
as_geojson_feature,
52-
as_geojson_feature_collection,
52+
as_geojson_feature_collection, BoundingBox,
5353
)
5454
from openeo_driver.util.ioformats import IOFORMATS
5555
from openeo_driver.util.logging import FlaskRequestCorrelationIdLogging
@@ -1228,8 +1228,8 @@ def test_aggregate_spatial_vector_cube_dimensions(
12281228
pg.update(preprocess_pg)
12291229
res = api.check_result(pg)
12301230

1231-
params = dummy_backend.last_load_collection_call("ESA_WORLDCOVER_10M_2020_V1")
1232-
assert params["spatial_extent"] == {"west": 1, "south": 1, "east": 5, "north": 4, "crs": "EPSG:4326"}
1231+
params = dummy_backend.last_load_collection_call("S2_FOOBAR")
1232+
assert params["spatial_extent"] == BoundingBox.from_dict({"west": 1, "south": 1, "east": 5, "north": 4, "crs": "EPSG:4326"}).reproject(32631).as_dict()
12331233
assert isinstance(params["aggregate_spatial_geometries"], DriverVectorCube)
12341234

12351235
assert res.json == DictSubSet({

0 commit comments

Comments
 (0)