com.supermap.services.providers

Class ArcGISCacheProviderBase

    • Field Detail

      • mapName

        protected java.lang.String mapName
        
      • rootPath

        protected java.nio.file.Path rootPath
        
    • Constructor Detail

      • ArcGISCacheProviderBase

        public ArcGISCacheProviderBase(MapProviderSetting setting)
        

        Constructors with parameters

        Parameters:
        setting - Map service provider configuration
      • ArcGISCacheProviderBase

        public ArcGISCacheProviderBase()
        

        Default constructor

    • Method Detail

      • getRootPath

        public abstract java.nio.file.Path getRootPath()
        
      • getMapName

        public abstract java.lang.String getMapName()
        
      • getDefaultCachePath

        protected java.lang.String[] getDefaultCachePath()
        
      • initSupportedMapNames

        protected java.util.List<java.lang.String> initSupportedMapNames()
        
        Initialize the list of supported maps.
        Specified by:
        initSupportedMapNames in class TiledMapProviderBase
        Returns:
        the list of map names
      • initDefaultMapParameter

        protected java.util.Map<java.lang.String,MapParameter> initDefaultMapParameter()
        

        Initializes the default map state, the return value is a map, the key is the map name, and the value is the map parameter object.

        Specified by:
        initDefaultMapParameter in class TiledMapProviderBase
        Returns:
        map state mapping, the key is the map name, and the value is the map parameter object.
      • getOrigin

        protected Point2D getOrigin(java.lang.String mapName)
        

        Gets the geographic coordinates of the upper left corner of the map.

        Specified by:
        getOrigin in class TiledMapProviderBase
        Parameters:
        mapName - Map name
        Returns:
        The geographic coordinates of the upper left corner of the map.
      • getSupportResolutions

        public double[] getSupportResolutions(java.lang.String mapName)
        

        Returns the resolution of the current service support. If all resolutions are supported, empty is returned.

        Specified by:
        getSupportResolutions in class TiledMapProviderBase
        Parameters:
        mapName - Map name.
        Returns:
        resolution array
      • getSupportImageFormat

        public OutputFormat[] getSupportImageFormat(java.lang.String mapName)
        

        Returns an array of image formats supported by the specified map

        Specified by:
        getSupportImageFormat in class TiledMapProviderBase
        Parameters:
        mapName -
        Returns:
        Since:
        7.0
      • isResolutionEquals

        protected boolean isResolutionEquals(double resolution1,
                                 double resolution2)
        
        Description copied from class: TiledMapProviderBase

        Determines if two resolutions are within the tolerance (1.0E-6)

        Overrides:
        isResolutionEquals in class TiledMapProviderBase
        Parameters:
        resolution1 - double
        resolution2 - double
        Returns:
        Is it equal