Description
aggregate_spatial: crs of data and geometry mismatch undefined
Undefined crs handling:
In aggregate_spatial, the input parameters data and geometries specify a raster datacube and a vector datacube, the output is a vector datacube.
A user might define the geometries in the wgs84 CRS, while the data coming from openeo must not necessarily be in wgs84.
There are three options to handle this:
- The geometries get reprojected to the data CRS and the resulting vector datacube has the CRS of the input data.
- The data gets reprojected to the geometries CRS and the resulting vector datacube has the CRS of the input geometries.
- An error is thrown, as the user should reproject data or geometries before.
Wouldn't it make sense to define or at least note it on the specification level?
Proposed solution:
We currently use Nr. 1, as it means using the CRS from the first input parameter.
Additional context:
The process is currently being tested on various input datasets, which differ in their CRS.
Backends normally handle the data CRS themselves, but for using this process, it can easily happen that there are two CRS options, which are both equally valid.