ImageWorker mosaic operation can return results with the wrong ROI

Description

The mosaic code tries to remove the output ROI if the background parameter was used (as the ROI is no more needed), but JAI sees that and picks the ROI of the first source as a consequence (and we cannot do anything about it). So in those cases, add back a simple rectangular ROI covering the whole image instead.
This in turn breaks any attempt at mosaicking images, as the WMS output code nowadays cuts on the image ROI property (so image mosaics, but also any raster dateline wrapping)

Environment

None

Assignee

Andrea Aime

Reporter

Andrea Aime

Triage

Components

Fix versions

Priority

Medium
Configure