| java.lang.Object org.vfny.geoserver.wms.responses.map.metatile.QuickTileCache
Inner Class :static class MapKey | |
Inner Class :static class MetaTileKey | |
Inner Class :class CacheElement | |
QuickTileCache | QuickTileCache()(Code) | | For testing only
|
getMetaTileCoordinates | Point getMetaTileCoordinates(Point tileCoords)(Code) | | Given a tile, returns the coordinates of the meta-tile that contains it
(where the meta-tile coordinate is the coordinate of its lower left
subtile)
Parameters: tileCoords - |
getMetaTileKey | public MetaTileKey getMetaTileKey(GetMapRequest request)(Code) | | Given a tiled request, builds a key that can be used to access the cache
looking for a specific meta-tile, and also as a synchronization tool to
avoid multiple requests to trigger parallel computation of the same
meta-tile
Parameters: request - |
getTile | public synchronized RenderedImage getTile(MetaTileKey key, GetMapRequest request)(Code) | | Gathers a tile from the cache, if available
Parameters: key - Parameters: request - |
getTile | public RenderedImage getTile(MetaTileKey key, GetMapRequest request, RenderedImage[] tiles)(Code) | | Parameters: key - Parameters: request - Parameters: tiles - |
getTileCoordinates | Point getTileCoordinates(Envelope env, Point2D origin)(Code) | | Given an envelope and origin, find the tile coordinate (row,col)
Parameters: env - Parameters: origin - |
normalize | static double normalize(double d)(Code) | | This is tricky. We need to have doubles that can be compared by equality
because resolution and origin are doubles, and are part of a hashmap key,
so we have to normalize them somehow, in order to make the little
differences disappear. Here we take the mantissa, which is made of 52
bits, and throw away the 20 more significant ones, which means we're
dealing with 12 significant decimal digits (2^40 -> more or less one
billion million). See also IEEE 754 on Wikipedia.
Parameters: d - |
storeTiles | public synchronized void storeTiles(MetaTileKey key, RenderedImage[] tiles)(Code) | | Puts the specified tile array in the cache, and returns the tile the
request was looking for
Parameters: key - Parameters: request - Parameters: tiles - |
|
|