Skip to content

Commit e7befd0

Browse files
committed
test fixes
1 parent 21e6151 commit e7befd0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

openeo_driver/dummy/dummy_backend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,8 +530,8 @@ class DummyCatalog(CollectionCatalog):
530530
}
531531
},
532532
'cube:dimensions': {
533-
"x": {"type": "spatial", "extent": [2.5, 6.2], "step":10, "reference_system": "AUTO:42001"},
534-
"y": {"type": "spatial", "extent": [49.5, 51.5], "step":10, "reference_system": "AUTO:42001"},
533+
"x": {"type": "spatial", "extent": [2.5, 6.2], "step":10, "reference_system": {"$schema": "https://proj.org/schemas/v0.2/projjson.schema.json", "type": "GeodeticCRS", "name": "AUTO 42001 (Universal Transverse Mercator)", "datum": {"type": "GeodeticReferenceFrame", "name": "World Geodetic System 1984", "ellipsoid": {"name": "WGS 84", "semi_major_axis": 6378137, "inverse_flattening": 298.257223563}}, "coordinate_system": {"subtype": "ellipsoidal", "axis": [{"name": "Geodetic latitude", "abbreviation": "Lat", "direction": "north", "unit": "degree"}, {"name": "Geodetic longitude", "abbreviation": "Lon", "direction": "east", "unit": "degree"}]}, "area": "World", "bbox": {"south_latitude": -90, "west_longitude": -180, "north_latitude": 90, "east_longitude": 180}, "id": {"authority": "OGC", "version": "1.3", "code": "Auto42001"}}},
534+
"y": {"type": "spatial", "extent": [49.5, 51.5], "step":10, "reference_system": {"$schema": "https://proj.org/schemas/v0.2/projjson.schema.json", "type": "GeodeticCRS", "name": "AUTO 42001 (Universal Transverse Mercator)", "datum": {"type": "GeodeticReferenceFrame", "name": "World Geodetic System 1984", "ellipsoid": {"name": "WGS 84", "semi_major_axis": 6378137, "inverse_flattening": 298.257223563}}, "coordinate_system": {"subtype": "ellipsoidal", "axis": [{"name": "Geodetic latitude", "abbreviation": "Lat", "direction": "north", "unit": "degree"}, {"name": "Geodetic longitude", "abbreviation": "Lon", "direction": "east", "unit": "degree"}]}, "area": "World", "bbox": {"south_latitude": -90, "west_longitude": -180, "north_latitude": 90, "east_longitude": 180}, "id": {"authority": "OGC", "version": "1.3", "code": "Auto42001"}}},
535535
"t": {"type": "temporal", "extent": ["2019-01-01", None]},
536536
"bands": {"type": "bands", "values": ["B02", "B03", "B04", "B08"]},
537537
},

openeo_driver/util/geometry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ def __init__(
458458

459459
@staticmethod
460460
def normalize_crs(crs: Union[str, int]) -> str:
461-
if crs == "Auto42001" or crs == "AUTO:42001":
461+
if crs == "Auto42001" or crs == "AUTO:42001" or "Auto42001" in str(crs) :
462462
return crs
463463
proj_crs = CRS.from_user_input(crs)
464464
maybeEPSG = proj_crs.to_epsg()

0 commit comments

Comments
 (0)