com.supermap.services.tilesource

Interface Tileset<T extends MetaData,V extends >

  • All Known Subinterfaces:
    ImageTileset
    All Known Implementing Classes:
    AbstractImageTileset


    public interface Tileset<T extends MetaData,V extends >
    

    The slice set. Contains meta information of slices and lots of slices

    Since:
    6.1.3
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String LATESTVERSIONNAME 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean append(double[] toAppendScales, double[] toAppendResolutions, Rectangle2D toAppendBounds, java.lang.String tileVersion)
      Specify the slice version for the current slice set to add a scale, a resolution array, and a 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
      boolean exists(Tile tile)
      Determines if the specified slice is present
      double findResolutionByScaleDenominator(double scaleDenominator)
      Obtains its corresponding resolution according to the scale denominator.
      V get(Tile tile)
      Gets specified slice information
      T getMetaData()
      Returns meta information
      java.lang.String getName()
      Slice set name, naming convention {type name} _tileset_ {gettileId via MetaData get}
      TilesetDesc getTilesetDesc()
      Gets the result dataset information
      java.util.List<TileVersion> getVersions()
      Returns all slice version information.
      void put(V tileInfo)
      Adds or modifies a slice
    • Field Detail

    • Method Detail

      • getMetaData

        T getMetaData()
        

        Returns meta information

        Returns:
        Since:
        6.1.3
      • getVersions

        java.util.List<TileVersion> getVersions()
        

        Returns all slice version information.

        Returns:
        Since:
        6.1.3
      • createTileVersion

        TileVersion createTileVersion(java.lang.String desc,
                                    java.lang.String parent,
                                    VersionUpdate update)
        

        Creates a new tile version.

        Parameters:
        desc - description information
        parent - parent version number, if empty, parent version is the last updated version
        update - update information
        Returns:
        Since:
        6.1.3
      • put

        void put(V tileInfo)
                 throws PutTileFailedException
        

        Adds or modifies a slice

        Parameters:
        tile - slice information
        Throws:
        PutTileFailedException
        Since:
        6.1.3
      • get

        V get(Tile tile)
        

        Gets specified slice information

        Parameters:
        tile - slice description
        Returns:
        slice information
        Since:
        7.0.0
      • deleteAll

        void deleteAll()
        

        Removes all slices

        Since:
        6.1.3
      • delete

        void delete(java.util.List<Tile> tiles)
        

        Clears the specified slice set

        Parameters:
        tiles - The set of slices to be cleared
        Since:
        6.1.3
      • exists

        boolean exists(Tile tile)
        

        Determines if the specified slice is present

        Parameters:
        tile - The slice to be judged
        Returns:
        Since:
        6.1.3
      • close

        void close()
        

        Close the slice set

        Since:
        6.1.3
      • getName

        java.lang.String getName()
        

        Slice set name, naming convention {type name} _tileset_ {gettileId via MetaData get}

        Returns:
        Since:
        6.1.3
      • append

        boolean append(double[] toAppendScales,
                     double[] toAppendResolutions,
                     Rectangle2D toAppendBounds,
                     java.lang.String tileVersion)
        
        Specify the slice version for the current slice set to add a scale, a resolution array, and a slice range.
        Parameters:
        toAppendScales - Scale denominator array.
        toAppendResolutions -
        toAppendBounds - If empty, indicates that the scale or range is added under the current slice set.
      • clear

        void clear(Rectangle2D bounds)
        

        Clears the slices within the specified range

        Parameters:
        bounds - The range of slices to be cleared
      • getTilesetDesc

        TilesetDesc getTilesetDesc()
        

        Gets the result dataset information

      • findResolutionByScaleDenominator

        double findResolutionByScaleDenominator(double scaleDenominator)
        

        Obtains its corresponding resolution according to the scale denominator.

        Returns:
        resolution.
        Since:
        7.1.0