com.supermap.services.components.impl

Class DefaultTileStore

  • java.lang.Object
    • com.supermap.services.components.impl.DefaultTileStore
  • All Implemented Interfaces:
    Disposable, TileStore


    public class DefaultTileStore
    extends java.lang.Object
    implements TileStore
    

    Tile storage.

    • Constructor Summary

      Constructors 
      Constructor and Description
      DefaultTileStore() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean appendTileVersionUpdate(java.lang.String tileVersionName, double[] scaleDenominators, double[] resolutions, Rectangle2D bounds)
      Adds the update information to the specified tile version When the version name is empty or does not exist, add the scale to the meta information of the tile set, the map range; When the version name exists, view the tile set with or without additional scale, map range, if not ,then add; whether there exists an additional scale ,map range in the update information of the view version, if not then adds ;
      void commit()
      Stores the tiles in a tile set.
      java.lang.String createNewVersion(java.lang.String parentVersion, java.lang.String description, VersionUpdate versionUpdate)
      Creates a new tile version.
      void dispose()
      Release the resource object.
      protected TileVersion findTileVersion(java.lang.String tileVersionName) 
      java.lang.String getLastTileVersion()
      Gets the latest tile version.
      protected Tileset getTileset() 
      TilesetDesc getTilesetDesc()
      Gets the tile description.
      boolean init(TileSourceInfo tileSourceInfo, MetaData metaData, boolean createTilesetIfNotExist)
      Initialization.
      boolean inited()
      Whether it has been initialized
      protected boolean isUserDefinedProvider() 
      protected void setTileset(Tileset<?,?> tileset) 
      void storeTile( tile)
      Stores tiles.
      void storeTiles([] tiles)
      Stores tiles.
      • Methods inherited from class java.lang.Object

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

      • DefaultTileStore

        public DefaultTileStore()
        
    • Method Detail

      • init

        public boolean init(TileSourceInfo tileSourceInfo,
                   MetaData metaData,
                   boolean createTilesetIfNotExist)
        
        Description copied from interface: TileStore

        Initialization.

        Specified by:
        init in interface TileStore
        Returns:
      • appendTileVersionUpdate

        public boolean appendTileVersionUpdate(java.lang.String tileVersionName,
                                      double[] scaleDenominators,
                                      double[] resolutions,
                                      Rectangle2D bounds)
        

        Adds the update information to the specified tile version When the version name is empty or does not exist, add the scale to the meta information of the tile set, the map range; When the version name exists, view the tile set with or without additional scale, map range, if not ,then add; whether there exists an additional scale ,map range in the update information of the view version, if not then adds ;

        Specified by:
        appendTileVersionUpdate in interface TileStore
        Parameters:
        tileVersionName - Tile version
        scaleDenominators - Scale denominator array
        resolutions - Resolution array
        bounds - Tile range.
        Returns:
      • getTileset

        protected Tileset getTileset()
        
      • setTileset

        protected void setTileset(Tileset<?,?> tileset)
        
      • isUserDefinedProvider

        protected boolean isUserDefinedProvider()
        
      • findTileVersion

        protected TileVersion findTileVersion(java.lang.String tileVersionName)
        
      • dispose

        public void dispose()
        
        Description copied from interface: Disposable

        Release the resource object.

        Specified by:
        dispose in interface Disposable
      • createNewVersion

        public java.lang.String createNewVersion(java.lang.String parentVersion,
                                        java.lang.String description,
                                        VersionUpdate versionUpdate)
        
        Description copied from interface: TileStore

        Creates a new tile version.

        Specified by:
        createNewVersion in interface TileStore
        Returns:
      • inited

        public boolean inited()
        

        Whether it has been initialized

        Returns:
      • getLastTileVersion

        public java.lang.String getLastTileVersion()
        
        Description copied from interface: TileStore

        Gets the latest tile version.

        Specified by:
        getLastTileVersion in interface TileStore
        Returns:
      • commit

        public void commit()
        
        Description copied from interface: TileStore

        Stores the tiles in a tile set.

        Specified by:
        commit in interface TileStore
      • getTilesetDesc

        public TilesetDesc getTilesetDesc()
        
        Description copied from interface: TileStore

        Gets the tile description.

        Specified by:
        getTilesetDesc in interface TileStore
        Returns: