LevelSet

open class LevelSet

Multi-resolution, hierarchical collection of tiles organized into levels of increasing resolution. Applications typically do not interact with this class.

Constructors

Link copied to clipboard
constructor(sector: Sector, tileOrigin: Sector, firstLevelDelta: Location, numLevels: Int, tileWidth: Int, tileHeight: Int, levelOffset: Int = 0, firstLevelNumber: Int = 0)

Constructs a level set with specified parameters.

constructor(levelSet: LevelSet)

Constructs a level set with parameters from a specified level set.

constructor(config: LevelSetConfig)

Constructs a level set with parameters from a specified configuration. The configuration's sector must be non-null, its first level delta must be positive, its number of levels must be 1 or more, and its tile width and tile height must be 1 or greater.

Properties

Link copied to clipboard

Returns the first level (the lowest resolution) of this level set.

Link copied to clipboard

The geographic width and height of tiles in the first level (the lowest resolution) of this level set.

Link copied to clipboard

Returns the last level (the highest resolution) of this level set.

Link copied to clipboard

Determines how many levels to skip from retrieving tile data during tile pyramid subdivision.

Link copied to clipboard

Returns the number of levels in this level set.

Link copied to clipboard

The sector spanned by this level set.

Link copied to clipboard

The height in pixels of images associated with tiles in this level set, or the number of sample points in the latitudinal direction of elevation tiles associated with this level set.

Link copied to clipboard

Tile origin for this level set

Link copied to clipboard

The width in pixels of images associated with tiles in this level set, or the number of sample points in the longitudinal direction of elevation tiles associated with this level set.

Functions

Link copied to clipboard
fun level(levelNumber: Int): Level?

Returns the Level for a specified level number.

Link copied to clipboard
fun levelForResolution(resolution: Angle): Level

Returns the level that most closely approximates the specified resolution.

Link copied to clipboard
fun minRelevantLevel(maxLevel: Level = lastLevel): Level

Determine the min relevant level for the sector of this level set

Link copied to clipboard
fun tileCount(sector: Sector, minLevel: Level, maxLevel: Level): Long

Calculates approximate count of tiles in specified sector within specified resolution range