GeoWebCache / geowebcache

GeoWebCache is a tile caching server implemented in Java that provides various tile caching services like WMS-C, TMS, WMTS, Google Maps, MS Bing and more
https://www.geowebcache.org
343 stars 281 forks source link

The reader selected when handling the MetaTile is random #387

Open nmco opened 8 years ago

nmco commented 8 years ago

In the MetaTile class the selected reader is random: https://github.com/GeoWebCache/geowebcache/blob/5d841c426741ce71eb69a9b11c9e8d14ebdfc7bb/geowebcache/core/src/main/java/org/geowebcache/layer/MetaTile.java#L360-L361

With JAI present we may not use the JAI reader because the normal one was loaded first.

This issue was reproduced with a real use case.

aaime commented 8 years ago

Wondering, picking the native one in PNG might actually slow things down compared to PNGJ. I though that ImageIO was using priorities to pick the "best" writer for the job (based on declared priorities). Nuno, did you get by any chance the PNGJ writer instead of the PNG native one?