|
21 | 21 | from openeo_driver.workspacerepository import WorkspaceRepository
|
22 | 22 | from tests.data import get_path, load_json, TEST_DATA_ROOT
|
23 | 23 |
|
| 24 | +CRS_UTM = {'$schema': 'https://proj.org/schemas/v0.2/projjson.schema.json', |
| 25 | + 'area': 'World', |
| 26 | + 'bbox': {'east_longitude': 180, |
| 27 | + 'north_latitude': 90, |
| 28 | + 'south_latitude': -90, |
| 29 | + 'west_longitude': -180}, |
| 30 | + 'coordinate_system': {'axis': [{'abbreviation': 'Lat', |
| 31 | + 'direction': 'north', |
| 32 | + 'name': 'Geodetic ' |
| 33 | + 'latitude', |
| 34 | + 'unit': 'degree'}, |
| 35 | + {'abbreviation': 'Lon', |
| 36 | + 'direction': 'east', |
| 37 | + 'name': 'Geodetic ' |
| 38 | + 'longitude', |
| 39 | + 'unit': 'degree'}], |
| 40 | + 'subtype': 'ellipsoidal'}, |
| 41 | + 'datum': {'ellipsoid': {'inverse_flattening': 298.257223563, |
| 42 | + 'name': 'WGS 84', |
| 43 | + 'semi_major_axis': 6378137}, |
| 44 | + 'name': 'World Geodetic System 1984', |
| 45 | + 'type': 'GeodeticReferenceFrame'}, |
| 46 | + 'id': {'authority': 'OGC', |
| 47 | + 'code': 'Auto42001', |
| 48 | + 'version': '1.3'}, |
| 49 | + 'name': 'AUTO 42001 (Universal Transverse ' |
| 50 | + 'Mercator)', |
| 51 | + 'type': 'GeodeticCRS'} |
24 | 52 |
|
25 | 53 | @pytest.fixture
|
26 | 54 | def dry_run_tracer() -> DryRunDataTracer:
|
@@ -256,7 +284,7 @@ def test_evaluate_graph_diamond(dry_run_env, dry_run_tracer):
|
256 | 284 | "bands": ["grass"],
|
257 | 285 | "resample": {"method": "near",
|
258 | 286 | "resolution": [10, 10],
|
259 |
| - "target_crs": "AUTO:42001"}, |
| 287 | + "target_crs": CRS_UTM}, |
260 | 288 | "spatial_extent": {"west": 1, "east": 2, "south": 51, "north": 52, "crs": "EPSG:4326"}
|
261 | 289 | }), (
|
262 | 290 | ("load_collection", ("S2_FOOBAR", ())),
|
@@ -1549,7 +1577,7 @@ def test_filter_after_merge_cubes(dry_run_env, dry_run_tracer):
|
1549 | 1577 | 'process_type': [ ProcessType.FOCAL_SPACE ],
|
1550 | 1578 | 'resample': {'method': 'average',
|
1551 | 1579 | 'resolution': [10, 10],
|
1552 |
| - 'target_crs': 'AUTO:42001'}, |
| 1580 | + 'target_crs': CRS_UTM}, |
1553 | 1581 | 'spatial_extent': {'crs': 'EPSG:32631',
|
1554 | 1582 | 'east': 642140.0,
|
1555 | 1583 | 'north': 5677450.0,
|
|
0 commit comments