public final class SimpleCacheHelperImpl extends java.lang.Object implements SimpleCacheHelper
| Constructor and Description |
|---|
SimpleCacheHelperImpl(MapParameter mapParam, java.lang.String outputDir, java.lang.String outputSite)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache(java.lang.String mapName, Rectangle2D bounds)
Clear the cache in specific area
|
java.lang.String |
getImageFullURL(MapParameter mapParam, ImageOutputOption outputOption)
Get the tile full path based on map parameters and map output settings.
|
int[] |
getImageIndexs(MapParameter mapParam)
Get tile index value
|
java.lang.String |
getImageRelativeURL(MapParameter mapParam, ImageOutputOption outputOption)
Set the tile relative path based on map parameters and map output settings.
|
public SimpleCacheHelperImpl(MapParameter mapParam, java.lang.String outputDir, java.lang.String outputSite)
Constructor
mapParam -outputDir -outputSite -public java.lang.String getImageRelativeURL(MapParameter mapParam, ImageOutputOption outputOption)
Set the tile relative path based on map parameters and map output settings.
getImageRelativeURL in interface SimpleCacheHelpermapParam - map parametersoutputOption - output optionspublic java.lang.String getImageFullURL(MapParameter mapParam, ImageOutputOption outputOption)
Get the tile full path based on map parameters and map output settings.
getImageFullURL in interface SimpleCacheHelpermapParam - map parametersoutputOption - output optionspublic int[] getImageIndexs(MapParameter mapParam)
Get tile index value
getImageIndexs in interface SimpleCacheHelpermapParam - map parameters
public void clearCache(java.lang.String mapName,
Rectangle2D bounds)
Clear the cache in specific area
clearCache in interface SimpleCacheHelpermapName - the map namebounds - the specific range