java.lang.Object
com.esri.arcgisruntime.arcgisservices.TileInfo
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
Modifier and TypeClassDescriptionstatic enum
Defines image formats supported by cached map services. -
Constructor Summary
ConstructorDescriptionTileInfo
(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. -
Method Summary
Modifier and TypeMethodDescriptionfloat
Returns the compression quality of the tile images.int
getDpi()
Returns the dots per inch (DPI) of the tiling scheme.Returns the format of the tile images.Returns a list of LevelOfDetail instances.Returns the origin of the tile info within the spatial reference.Returns the spatial reference for the tile info.int
Returns the height of each tile in pixels.int
Returns the width of each tile in pixels.
-
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 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 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
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
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
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
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
-