Class TileInfo
- java.lang.Object
-
- com.esri.arcgisruntime.arcgisservices.TileInfo
-
public final class TileInfo extends java.lang.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TileInfo.ImageFormat
Defines image formats supported by cached map services.
-
Constructor Summary
Constructors Constructor Description TileInfo(int dpi, TileInfo.ImageFormat imageFormat, java.util.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getCompressionQuality()
Returns the compression quality of the tile images.int
getDpi()
Returns the dots per inch (DPI) of the tiling scheme.TileInfo.ImageFormat
getFormat()
Returns the format of the tile images.java.util.List<LevelOfDetail>
getLevelsOfDetail()
Returns a list of LevelOfDetail instances.Point
getOrigin()
Returns the origin of the tile info within the spatial reference.SpatialReference
getSpatialReference()
Returns the spatial reference for the tile info.int
getTileHeight()
Returns the height of each tile in pixels.int
getTileWidth()
Returns the width of each tile in pixels.
-
-
-
Constructor Detail
-
TileInfo
public TileInfo(int dpi, TileInfo.ImageFormat imageFormat, java.util.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 tileimageFormat
- the format of the tile imageslevelOfDetails
- list of LevelOfDetail instances, one for each level of detailorigin
- origin of the tilesspatialReference
- spatial reference of the tilestileHeight
- height of a tile, in pixelstileWidth
- width of a tile, in pixels- Since:
- 100.0.0
-
-
Method Detail
-
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 java.util.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
-
-