java.lang.Object
com.esri.arcgisruntime.arcgisservices.TileInfo

public final class TileInfo extends Object
Represents the tiling scheme used by a cached map service. For example, ArcGIS Server cached map service, Bing Maps, etc. The tiling scheme contains information about how a map is broken up into tiles of images and how a client can use these tiles to display a map.
Since:
100.0.0
  • Constructor Details

    • TileInfo

      public TileInfo(int dpi, TileInfo.ImageFormat imageFormat, List<LevelOfDetail> levelOfDetails, Point origin, SpatialReference spatialReference, int tileHeight, int tileWidth)
      Creates a new instance of this class with the given image format, spatial reference, origin and tile size including tile DPI. Also requires a list of level of detail instances along with the full extent.
      Parameters:
      dpi - DPI of each tile
      imageFormat - the format of the tile images
      levelOfDetails - list of LevelOfDetail instances, one for each level of detail
      origin - origin of the tiles
      spatialReference - spatial reference of the tiles
      tileHeight - height of a tile, in pixels
      tileWidth - width of a tile, in pixels
      Since:
      100.0.0
  • Method Details

    • getDpi

      public int getDpi()
      Returns the dots per inch (DPI) of the tiling scheme.
      Returns:
      the DPI of the tiles
      Since:
      100.0.0
    • getLevelsOfDetail

      public List<LevelOfDetail> getLevelsOfDetail()
      Returns a list of LevelOfDetail instances. Each one has properties for its particular resolution and scale.
      Returns:
      an unmodifiable list of levels of detail
      Since:
      100.0.0
    • getOrigin

      public Point getOrigin()
      Returns the origin of the tile info within the spatial reference. The origin is the upper left corner of the tiling scheme grid.
      Returns:
      the origin of the tile info
      Since:
      100.0.0
    • getSpatialReference

      public SpatialReference getSpatialReference()
      Returns the spatial reference for the tile info.
      Returns:
      the spatial reference for the tile info
      Since:
      100.0.0
    • getTileHeight

      public int getTileHeight()
      Returns the height of each tile in pixels.
      Returns:
      the height of each tile in pixels
      Since:
      100.0.0
    • getTileWidth

      public int getTileWidth()
      Returns the width of each tile in pixels.
      Returns:
      the width of each tile in pixels
      Since:
      100.0.0
    • getFormat

      public TileInfo.ImageFormat getFormat()
      Returns the format of the tile images.
      Returns:
      the format of the tile images
      Since:
      100.0.0
    • getCompressionQuality

      public float getCompressionQuality()
      Returns the compression quality of the tile images. The compression quality controls how much loss the image will be subjected to by the compression algorithm. The values of the pixels of an image compressed with a higher compression quality will be closer to those of the original image. The valid range of compression quality values is from 0 to 100.
      Returns:
      the compression quality of the tile images; if the compression quality is not defined the return value is Float.NAN
      Since:
      100.0.0