RasterDownload on Heterogeneous CRS Mosaic: avoid reprojection of granules having same CRS as the target CRS.

Description

ImageMosaic can support mosaics of data with different CRSs. (Think about a collection of sentinel data with different UTM zones).
In ImageMosaic, a single common CRS is exposed as the native CRS of the whole collection (as an instance WGS84).

When dealing with an HeterogeneousCRS mosaic, all the read requests get internally reprojected to the common CRS.
So, a raster download with targetCRS = UTM 32N of a UTM 32N granule results into:

  1. a read of that granule

  2. an internal reprojection made by imageMosaic to common CRS (i.e. WGS84)

  3. an additional reprojection of the reprojected coverage, back to Target CRS = UTM 32N

It would be great to recognize this situation and avoid the double reprojection

Environment

None

Assignee

Daniele Romagnoli

Reporter

Daniele Romagnoli

Triage

None

Fix versions

Affects versions

None

Components

Priority

Medium
Configure