mbedward / jaitools

Raster image processing for Java developers
17 stars 15 forks source link

transformation issues #227

Closed wumpz closed 8 years ago

wumpz commented 9 years ago

This patch adresses some issues.

Using DiskMemImageGraphics.create does not copy the used AffineTransformation but uses the original one. This has the effect that on using scale, rotate etc. the original transformation in the original Graphics2D object is changed as well. A test is included as well.

The TileCacheVisitorTest does fail if a new JDK is used on a fast computer. This is due to DiskMemTileCache.defaultMemoryControl line 807. The comparator does sort by TileAccessTimeComparator. The access time of all tiles could be equal on fast computers.

Assuming that the filter order within the BaseCacheVisitor should be preserved I changed the implementation to a LinkedHashMap.

mbedward commented 8 years ago

Many thanks for these fixes. I'll merge your changes (minus the 1.4 release commit) today in preparation for a new release.

mbedward commented 8 years ago

Fixes merged into master - thanks !