Skip to content

Commit 3e970fa

Browse files
committed
#334 compute geometry bbox in target crs if possible
1 parent aaffbe5 commit 3e970fa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/test_views_execute.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import numpy as np
1818
import pytest
1919
import shapely.geometry
20+
from pyproj import CRS
2021

2122
from openeo_driver.datacube import DriverDataCube, DriverVectorCube
2223
from openeo_driver.datastructs import ResolutionMergeArgs, SarBackscatterArgs
@@ -1229,9 +1230,10 @@ def test_aggregate_spatial_vector_cube_dimensions(
12291230
res = api.check_result(pg)
12301231

12311232
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

1235+
assert BoundingBox.from_dict(params["spatial_extent"]).as_wsen_tuple() == params.aggregate_spatial_geometries.reproject(CRS.from_epsg(32631)).get_bounding_box()
1236+
12351237
assert res.json == DictSubSet({
12361238
"type": "FeatureCollection",
12371239
"features": [

0 commit comments

Comments
 (0)