com.supermap.services.tilesource.impl

Class AbstractImageTileset

  • java.lang.Object
    • com.supermap.services.tilesource.impl.AbstractImageTileset
  • All Implemented Interfaces:
    ImageTileset, Tileset<ImageMetaData,ImageTileInfo>


    public abstract class AbstractImageTileset
    extends java.lang.Object
    implements ImageTileset
    

    Abstract picture type slice set

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean append(double[] toAppendScales, double[] toAppendResolutions, Rectangle2D toAppendBounds, java.lang.String tileVersionName)
      Additional scale level, resolution level, slice range.
      void clear(Rectangle2D bounds)
      Clears the slices within the specified range
      void close()
      Close the slice set
      TileVersion createTileVersion(java.lang.String desc, java.lang.String parent, VersionUpdate update)
      Creates a new tile version.
      void delete(java.util.List<Tile> tiles)
      Clears the specified slice set
      void deleteAll()
      Removes all slices
      protected abstract boolean doUpdateMetaData(ImageMetaData metaData, TileVersionList tileVersions)
      Updates Meta Information and Slice Version List
      boolean exists(Tile tile)
      Determines if the specified slice is present
      double findResolutionByScaleDenominator(double scaleDenominator)
      Obtains its corresponding resolution according to the scale denominator.
      ImageMetaData getMetaData()
      Returns meta information
      TilesetDesc getTilesetDesc()
      Gets the results of the cut map information, because there is no need to sqlite other than the cache released into a service so it temporarily not achieves.
      TileVersionList getTileVersions()
      Gets the slice version list
      java.util.List<TileVersion> getVersions()
      Returns all slice version information.
      void setMetaData(ImageMetaData metaData)
      Sets meta information
      void setTileVersions(TileVersionList tileVersions)
      Sets the slice version list
      protected boolean tileVersionSupported() 
      • Methods inherited from class java.lang.Object

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

      • AbstractImageTileset

        public AbstractImageTileset()
        
    • Method Detail

      • setMetaData

        public void setMetaData(ImageMetaData metaData)
        

        Sets meta information

        Parameters:
        metaData -
      • setTileVersions

        public void setTileVersions(TileVersionList tileVersions)
        

        Sets the slice version list

        Parameters:
        tileVersions -
      • getMetaData

        public ImageMetaData getMetaData()
        
        Description copied from interface: Tileset

        Returns meta information

        Specified by:
        getMetaData in interface Tileset<ImageMetaData,ImageTileInfo>
        Returns:
      • getTileVersions

        public TileVersionList getTileVersions()
        

        Gets the slice version list

        Returns:
      • getVersions

        public java.util.List<TileVersion> getVersions()
        
        Description copied from interface: Tileset

        Returns all slice version information.

        Specified by:
        getVersions in interface Tileset<ImageMetaData,ImageTileInfo>
        Returns:
      • exists

        public boolean exists(Tile tile)
        
        Description copied from interface: Tileset

        Determines if the specified slice is present

        Specified by:
        exists in interface Tileset<ImageMetaData,ImageTileInfo>
        Parameters:
        tile - The slice to be judged
        Returns:
      • append

        public boolean append(double[] toAppendScales,
                     double[] toAppendResolutions,
                     Rectangle2D toAppendBounds,
                     java.lang.String tileVersionName)
        
        Additional scale level, resolution level, slice range.
        Specified by:
        append in interface Tileset<ImageMetaData,ImageTileInfo>
        Parameters:
        toAppendScales - Scale denominator array.
        toAppendBounds - If empty, indicates that the scale or range is added under the current slice set.
      • createTileVersion

        public TileVersion createTileVersion(java.lang.String desc,
                                    java.lang.String parent,
                                    VersionUpdate update)
        
        Description copied from interface: Tileset

        Creates a new tile version.

        Specified by:
        createTileVersion in interface Tileset<ImageMetaData,ImageTileInfo>
        Parameters:
        desc - description information
        parent - parent version number, if empty, parent version is the last updated version
        update - update information
        Returns:
      • doUpdateMetaData

        protected abstract boolean doUpdateMetaData(ImageMetaData metaData,
                               TileVersionList tileVersions)
        

        Updates Meta Information and Slice Version List

        Parameters:
        metaData - Meta information to be updated, and if it is null, it means not updating meta information
        tileVersions - to be updated version of the list of sections, and if it is null, it is means that they did not update the version list sliced
        Returns:
        Since:
        7.0.0
      • deleteAll

        public void deleteAll()
        
        Description copied from interface: Tileset

        Removes all slices

        Specified by:
        deleteAll in interface Tileset<ImageMetaData,ImageTileInfo>
      • delete

        public void delete(java.util.List<Tile> tiles)
        
        Description copied from interface: Tileset

        Clears the specified slice set

        Specified by:
        delete in interface Tileset<ImageMetaData,ImageTileInfo>
        Parameters:
        tiles - The set of slices to be cleared
      • clear

        public void clear(Rectangle2D bounds)
        
        Description copied from interface: Tileset

        Clears the slices within the specified range

        Specified by:
        clear in interface Tileset<ImageMetaData,ImageTileInfo>
        Parameters:
        bounds - The range of slices to be cleared
      • close

        public void close()
        
        Description copied from interface: Tileset

        Close the slice set

        Specified by:
        close in interface Tileset<ImageMetaData,ImageTileInfo>
      • tileVersionSupported

        protected boolean tileVersionSupported()
        
      • getTilesetDesc

        public TilesetDesc getTilesetDesc()
        
        Gets the results of the cut map information, because there is no need to sqlite other than the cache released into a service so it temporarily not achieves.
        Specified by:
        getTilesetDesc in interface Tileset<ImageMetaData,ImageTileInfo>
      • findResolutionByScaleDenominator

        public double findResolutionByScaleDenominator(double scaleDenominator)
        
        Description copied from interface: Tileset

        Obtains its corresponding resolution according to the scale denominator.

        Specified by:
        findResolutionByScaleDenominator in interface Tileset<ImageMetaData,ImageTileInfo>
        Returns:
        resolution.