public class CachedImageLoader extends Object implements ImageLoader
Image loading is an important performance factor to tile clients. Tests have shown that image loading is more important than image rendering. The risk is, however, to fill your disk with tile images, so make sure to empty the directory from time to time. Also note that some tile service may not allow you to save tile locally. If you do so, you might be breaching licenses. So, be nice.
Constructor and Description |
---|
CachedImageLoader(File cacheDirectory) |
Modifier and Type | Method and Description |
---|---|
BufferedImage |
loadImageTileImage(Tile tile)
Loads an image for the given tile.
|
public CachedImageLoader(File cacheDirectory)
public BufferedImage loadImageTileImage(Tile tile) throws IOException
ImageLoader
loadImageTileImage
in interface ImageLoader
IOException
Copyright © 1996–2019 Geotools. All rights reserved.