com.supermap.services.providers

Class TilesetMapProvider

    • Constructor Detail

      • TilesetMapProvider

        public TilesetMapProvider()
        
    • Method Detail

      • getSupportResolutions

        public double[] getSupportResolutions(java.lang.String mapName)
        
        Description copied from class: TiledMapProviderBase

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

        Specified by:
        getSupportResolutions in class TiledMapProviderBase
        Parameters:
        mapName - The map name.
        Returns:
        The resolution array.
      • initDefaultMapParameter

        protected java.util.Map<java.lang.String,MapParameter> initDefaultMapParameter()
        
        Description copied from class: TiledMapProviderBase

        Initializing the default map status, a mapping object will be returned, of which the key is map name, valude is map parameter object.

        Specified by:
        initDefaultMapParameter in class TiledMapProviderBase
        Returns:
        Map status mapping. The key is the map name, and the value is the map parameter object.
      • outputImage

        protected byte[] outputImage(MapParameter param,
                         ImageOutputOption outputOption,
                         double currentResolution)
        
        Description copied from class: TiledMapProviderBase

        Output image in real time. It is stored in the specified path according to the map parameter.

        Overrides:
        outputImage in class TiledMapProviderBase
        Parameters:
        param - Map status
        outputOption - Image parameter
        currentResolution - Resolution
      • getOrigin

        protected Point2D getOrigin(java.lang.String mapName)
        
        Description copied from class: TiledMapProviderBase

        Get the geographical coordinate of left upper corner of the map.

        Specified by:
        getOrigin in class TiledMapProviderBase
        Parameters:
        mapName - The map name.
        Returns:
        The geographical coordinate of left upper corner of the map.
      • init

        protected void init(MapProviderSetting setting)
        
        Description copied from class: TiledMapProviderBase

        Initialization function. This function does not carry on null judgment on parameter, but it may judge the correction of the contents.

        Overrides:
        init in class TiledMapProviderBase
        Parameters:
        setting - The configuration object of service provider.
      • setMapInfoByTilesets

        protected void setMapInfoByTilesets(java.util.List<ImageTileset> tilesets)
        
      • 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
      • support

        public boolean support(java.lang.String mapName,
                      MapCapability capability)
        
        Description copied from interface: MapProvider
        Determines whether the map supports the specified function.
        Specified by:
        support in interface MapProvider
        Overrides:
        support in class TiledMapProviderBase
        Parameters:
        mapName - The map name.
        capability - Function type.
        Returns:
        true means to support; otherwise, false.
      • initTilesets

        protected abstract java.util.List<ImageTileset> initTilesets()
        
        Initializes the slice set.
        Returns:
        returns a collection of supported slices.