Skip to content

Commit fdddfde

Browse files
jdriesPeter Van Bouwel
authored andcommitted
Open-EO#334 compute geometry bbox in target crs if possible
1 parent fa2be0e commit fdddfde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_views_execute.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ def test_aggregate_spatial_invalid_geometry(api, geometries, expected):
10291029
def test_aggregate_spatial_vector_cube_basic(api, feature_collection_test_path):
10301030
path = get_path(feature_collection_test_path)
10311031
pg = {
1032-
"lc": {"process_id": "load_collection", "arguments": {"id": "ESA_WORLDCOVER_10M_2020_V1", "bands": ["MAP"]}},
1032+
"lc": {"process_id": "load_collection", "arguments": {"id": "S2_FOOBAR", "bands": ["MAP"]}},
10331033
"lf": {
10341034
"process_id": "load_uploaded_files",
10351035
"arguments": {"paths": [str(path)], "format": "GeoJSON", "options": {"columns_for_cube": []}},
@@ -1053,7 +1053,7 @@ def test_aggregate_spatial_vector_cube_basic(api, feature_collection_test_path):
10531053
res = api.check_result(pg)
10541054

10551055
params = dummy_backend.last_load_collection_call("ESA_WORLDCOVER_10M_2020_V1")
1056-
assert params["spatial_extent"] == {"west": 1, "south": 1, "east": 5, "north": 4, "crs": "EPSG:4326"}
1056+
assert params["spatial_extent"] == {"west": 277438.26352113695, "south": 110530.15880237566, "east": 722056.3830076031, "north": 442397.8228986237, "crs": 32631}
10571057
assert isinstance(params["aggregate_spatial_geometries"], DriverVectorCube)
10581058

10591059
assert res.json == DictSubSet(

0 commit comments

Comments
 (0)