Andrea Aime a écrit :
> The issue was that the algorithm used the projected envelope center
> for axis extrema tests, but there was no guaratee this point was
> inside the original envelope due to how the first projected envelope
> was computed (it's larger than the actual projection, for starters).
> So I took the liberty of adding a test and modifying che code so
> that the source envelope center was used (after projecting it
> to the destination CRS). This works better, I could not spot
> any other corner cases where it did not work.
I think you are right and did well. Thanks for updating the code.
I modified it in order to take advantage from the fact that the center point was
already projected by 'transform(MathTransform, ...)' methods, so we reuse that
point instead of projecting it again. In addition, I also modified the methode
working on Rectangle2D in order to apply the same strategy.
Martin
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel