WCS 2.0 scaling policies do not account for scaling factor already applied during read (due to subsampling and overview)

Description

Found out while activating the subsampling correctly in GeoTools in GEOT-6088,
the scaling policies just take the coverage read so far and blindly apply the requested scaling factors to it, not considering that the read can have reduced the resolution already (and due to uneven resolutions or numerical issues, could have done so in different way on the X and Y axis)

Environment

None

Status

Assignee

Andrea Aime

Reporter

Andrea Aime

Triage

None

Fix versions

Affects versions

None

Priority

Medium
Configure