Skip to content

Commit 9e0c9bf

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_views_execute.py

+3-3
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": "S2_FOOBAR", "bands": ["MAP"]}},
1032+
"lc": {"process_id": "load_collection", "arguments": {"id": "S2_FOOBAR", "bands": ["B02","B03","B04"]}},
10331033
"lf": {
10341034
"process_id": "load_uploaded_files",
10351035
"arguments": {"paths": [str(path)], "format": "GeoJSON", "options": {"columns_for_cube": []}},
@@ -1052,7 +1052,7 @@ def test_aggregate_spatial_vector_cube_basic(api, feature_collection_test_path):
10521052
}
10531053
res = api.check_result(pg)
10541054

1055-
params = dummy_backend.last_load_collection_call("ESA_WORLDCOVER_10M_2020_V1")
1055+
params = dummy_backend.last_load_collection_call("S2_FOOBAR")
10561056
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

@@ -1198,7 +1198,7 @@ def test_aggregate_spatial_vector_cube_dimensions(
11981198
):
11991199
path = get_path("geojson/FeatureCollection02.json")
12001200
pg = {
1201-
"lc": {"process_id": "load_collection", "arguments": {"id": "ESA_WORLDCOVER_10M_2020_V1", "bands": ["MAP"]}},
1201+
"lc": {"process_id": "load_collection", "arguments": {"id": "S2_FOOBAR", "bands": ["B02","B03","B04"]}},
12021202
"lf": {
12031203
"process_id": "load_uploaded_files",
12041204
"arguments": {"paths": [str(path)], "format": "GeoJSON", "options": {"columns_for_cube": []}},

0 commit comments

Comments
 (0)