Open-EO / openeo-geopyspark-driver

OpenEO driver for GeoPySpark (Geotrellis)
Apache License 2.0
25 stars 4 forks source link

better error message when bounds is too large for utm #804

Open jdries opened 2 weeks ago

jdries commented 2 weeks ago

A user is doing aggregate_spatial with points, but the underlying bbox is too large for utm, resulting in reprojection error. This log entry contains most relevant info: Creating layer for SENTINEL2_L2A with load params {'temporal_extent': ('2023-06-11', '2023-06-11'), 'spatial_extent': {'west': 47.28797397951181, 'south': 51.70891025651182, 'east': 77.61208974348833, 'north': 77.39244539348832, 'crs': 'EPSG:4326'}, 'global_extent': {'west': 47.28797397951181, 'south': 51.70891025651182, 'east': 77.61208974348833, 'north': 77.39244539348832, 'crs': 'EPSG:4326'}, 'bands': ['B01', 'B02', 'B03', 'B04', 'B05', 'B8A'], 'properties': {'eo:cloud_cover': {'process_graph': {'lte1': {'result': True, 'process_id': 'lte', 'arguments': {'x': {'from_parameter': 'value'}, 'y': 35}}}}}, 'aggregate_spatial_geometries': DriverVectorCube(

Doing aggregate spatial with 2 corner points of the bbox should already trigger the issue. A better error would allow the user to find out more easily.