Open-EO / openeo-geopyspark-driver

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

stac item geometry seems inaccurate for rasters in utm #756

Open jdries opened 2 months ago

jdries commented 2 months ago

The STAC metadata for a raster in UTM projection should usually have a bounding geometry that is not square in lat lon. It seems however that this is not the case, and that bounding geometry is derived from bounding box in lat lon, which is incorrect. It should rather be the utm bbox converted to polygon converted to lat lon.

Problematic line of code: https://github.com/Open-EO/openeo-geopyspark-driver/blob/31fe887dd930a2eef1ec0cf0914beb1c26115a51/openeogeotrellis/deploy/batch_job.py#L122

Solution: determine geometry based on actual output raster bboxes rather than spatial extent collected by tracer.

jdries commented 2 months ago

This is a WorldCereal issue, but not blocking, so not high priority.