com.supermap.services.util.cache

Class SimpleCacheHelperImpl

  • java.lang.Object
    • com.supermap.services.util.cache.SimpleCacheHelperImpl
    • Constructor Summary

      Constructors 
      Constructor and Description
      SimpleCacheHelperImpl(MapParameter mapParam, java.lang.String outputDir, java.lang.String outputSite)
      Constructor
    • Method Summary

      Methods 
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleCacheHelperImpl

        public SimpleCacheHelperImpl(MapParameter mapParam,
                             java.lang.String outputDir,
                             java.lang.String outputSite)
        

        Constructor

        Parameters:
        mapParam -
        outputDir -
        outputSite -
    • Method Detail

      • getImageRelativeURL

        public java.lang.String getImageRelativeURL(MapParameter mapParam,
                                           ImageOutputOption outputOption)
        

        Set the tile relative path based on map parameters and map output settings.

        Specified by:
        getImageRelativeURL in interface SimpleCacheHelper
        Parameters:
        mapParam - map parameters
        outputOption - output options
        Returns:
        the tile relative path.
      • getImageFullURL

        public java.lang.String getImageFullURL(MapParameter mapParam,
                                       ImageOutputOption outputOption)
        

        Get the tile full path based on map parameters and map output settings.

        Specified by:
        getImageFullURL in interface SimpleCacheHelper
        Parameters:
        mapParam - map parameters
        outputOption - output options
        Returns:
      • clearCache

        public void clearCache(java.lang.String mapName,
                      Rectangle2D bounds)
        

        Clear the cache in specific area

        Specified by:
        clearCache in interface SimpleCacheHelper
        Parameters:
        mapName - the map name
        bounds - the specific range