Skip to content

aggregate_spatial: crs of data and geometry mismatch undefined #499

Open
@ValentinaHutter

Description

@ValentinaHutter

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:

  1. The geometries get reprojected to the data CRS and the resulting vector datacube has the CRS of the input data.
  2. The data gets reprojected to the geometries CRS and the resulting vector datacube has the CRS of the input geometries.
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions