Class: AreaOfInterestTilePyramid

AreaOfInterestTilePyramid

A TilePyramid implementation, the equivalent of AOITilePyramid in tile-service/binning-utilities.

new AreaOfInterestTilePyramid(spec)

Instantiate an AreaOfInterestTilePyramid object.
Name Type Description
spec Object The specification object.

Methods

fractionalTileToRoot(tile){Object}

Maps a fractional tile coordinate to a point in the root coordinate system.
Name Type Description
tile Object The fractional tile coordinate.
Returns:
root coordinate.

getBinBounds(tile, bin){Object}

Returns the bounds of a particular bin in the root coordinate system.
Name Type Description
tile Object The tile coordinate.
bin Object The bin coordinate.
Returns:
bounds object.
Returns the projection code associated with the pyramid.
Returns:
projection code.

getTileBounds(tile){Object}

Returns the bounds of a particular tile in the root coordinate system.
Name Type Description
tile Object The tile coordinate.
Returns:
bounds object.
Returns the tile scheme associated with the pyramid.
Returns:
scheme code.

rootToBin(x, y, tile){Object}

Maps a point from the root coordinate system to a specific bin coordinate.
Name Type Description
x number The x root coordinate value.
y number The y root coordinate value.
tile Object The tile coordinate that holds the target bin.
Returns:
bin coordinate.

rootToBin(x, y, tile){Object}

Maps a point from the root coordinate system to a specific bin coordinate.
Name Type Description
x number The x root coordinate value.
y number The y root coordinate value.
tile Object The tile coordinate that holds the target bin.
Returns:
bin coordinate.

rootToFractionalBin(x, y, tile){Object}

Maps a point from the root coordinate system to a specific bin fractional coordinate.
Name Type Description
x number The x root coordinate value.
y number The y root coordinate value.
tile Object The tile coordinate that holds the target bin.
Returns:
bin coordinate.

rootToFractionalTile(x, y, level, bins){Object}

Maps a point from the root coordinate system to a fractional tile coordinate.
Name Type Description
x number The x root coordinate value.
y number The y root coordinate value.
level integer The zoom level.
bins integer The number of bins per dimension in a tile.
Returns:
fractional tile coordinate.

rootToTile(x, y, level, bins){Object}

Maps a point from the root coordinate system to a tile coordinate.
Name Type Description
x number The x root coordinate value.
y number The y root coordinate value.
level integer The zoom level.
bins integer The number of bins per dimension in a tile.
Returns:
tile coordinate.
Returns the JSON representation of this tile pyramid as a string.
Returns:
bounds object.