Class: GeographicTilingScheme

GeographicTilingScheme

new GeographicTilingScheme()

A tiling scheme that references the simple GeographicProjection, where longitude and latitude are directly mapped to X and Y. This projection is commonly referred to as geographic projection, equirectangular projection, equidistant cylindrical projection, or plate carrée.

Name Type Default Description
options.ellipsoid Ellipsoid Ellipsoid.WGS84 optional

The surface of this ellipsoid is divided into tile regions, using the framework's default ellipsoid by default.

options.rectangle Rectangle Rectangle.MAX_VALUE optional

The rectangular area covered by this tiling scheme (in radians).

options.numberOfLevelZeroTilesX Number 2 optional

The number of tiles in the X direction at level zero of the tile tree.

options.numberOfLevelZeroTilesY Number 1 optional

The number of tiles in the Y direction at level zero of the tile tree.

options.customDPI Cartesian2 optional

The DPI used in this tile partitioning scheme.

options.scaleDenominators Array optional

The reciprocal of the scale corresponding to each level in the tile partitioning scheme.

options.origin Cartesian2 optional

The origin position of the tile partition scheme.

options.beginLevel Cartesian2 0 optional

The starting level of the tile partitioning scheme.

options.tileWidth Number 256 optional

The width of each tile.

options.tileHeight Number 256 optional

The height of each tile.

Members

beginLevelNumber

Obtain the starting level of tile partitioning scheme.

ellipsoidEllipsoid

Gets the ellipsoid on which this tiling scheme is based.

originCartesian2

Gets the origin of the tile (for WMTS), compatible with the issue in newer iServer versions where the top-left corner of the image extent does not match the tile origin.

projectionMapProjection

Gets the map projection used by this tiling scheme.

rectangleRectangle

Gets the rectangular area covered by this tiling scheme (in radians).

Methods

getNumberOfXTilesAtLevel(level){Number}

Gets the total number of tiles in the X direction at the specified level of detail.

Name Type Description
level Number

Level of detail.

Returns:
Type Description
Number The number of tiles in the X direction within a given hierarchy.

getNumberOfYTilesAtLevel(level){Number}

Gets the total number of tiles in the Y direction at the specified level of detail.

Name Type Description
level Number

Level of detail.

Returns:
Type Description
Number The number of tiles in the Y direction within a given hierarchy

positionToTileXY(position, level, result){Cartesian2}

Calculates the x, y coordinates of the tile containing the given projected position.

Name Type Description
position Cartographic

Location.

level Number

The level of detail of the tile. 0 is the least detailed.

result Cartesian2 optional

The instance to copy the result to, or undefined to create a new instance.

Returns:
Type Description
Cartesian2 The specified 'result', or a new object containing a rectangle.

rectangleToNativeRectangle(rectangle, result){Rectangle}

Converts a rectangle specified in geodetic radians to the native coordinate system of this tiling scheme.

Name Type Description
rectangle Rectangle

The rectangle to convert.

result Rectangle optional

The instance to copy the result to, or undefined to create a new instance.

Returns:
Type Description
Rectangle The specified 'result', if 'result' * is undefined, is a new object containing a local rectangle. It is undefined

tileXYToNativeRectangle(x, y, level, result){Rectangle}

Converts the X, Y coordinates and level of a tile to a rectangle in the native coordinate system of this tiling scheme.

Name Type Description
x Number

The integer X coordinate of the tile.

y Number

The integer Y coordinate of the tile.

level Number

The level of detail of the tile. 0 is the least detailed.

result Object optional

The instance to copy the result to, or undefined to create a new instance.

Returns:
Type Description
Rectangle The specified 'result', or a new object containing a rectangle.

tileXYToRectangle(x, y, level, result){Rectangle}

Converts the X, Y coordinates and level of a tile to a cartographic rectangle in radians.

Name Type Description
x Number

The integer X coordinate of the tile.

y Number

The integer Y coordinate of the tile.

level Number

The level of detail of the tile. 0 is the least detailed.

result Object optional

The instance to copy the result to, or undefined to create a new instance.

Returns:
Type Description
Rectangle The specified 'result', or a new object containing a rectangle.