|
The current mosaic code can return images that are heavily translated from the origin, because their ordinates are relative to the full mosaic, and if the mosaic is a whole planet in 3857 at 0,5 meters well... we end up dealing with huge numbers. This causes heavy issues in JAI, which uses often floats to represents ordinates in affine and warp transformations (we're at the limit of float accuracy)
Change the code so that the images returned are anchored to 0,0 instead, in order to make sure the whole image can be represented with small numbers (yes, we'll still have issues with extractions of huge images, but if someone really wants to try and generate an output of the whole world at 0,5 meters, well, they can probably also sponsor the development needed to handle that case).
|