Package dev.avelar.mapnik
Class Tiles.Tile
java.lang.Object
dev.avelar.mapnik.Tiles.Tile
- Enclosing class:
- Tiles
One tile of the grid.
-
Constructor Summary
ConstructorsConstructorDescriptionTile(int z, int x, int y) ThrowsIllegalArgumentExceptionif the tile is not on the grid. -
Method Summary
Modifier and TypeMethodDescriptionbounds()The tile's area in Web Mercator metres.children()The four tiles one zoom in, top left, top right, bottom left, bottom right.booleanstatic Tiles.TilefromQuadKey(String key) The tile a quadkey names.inthashCode()The tile's area in degrees of longitude and latitude.parent()The tile one zoom out that contains this one.quadKey()Bing-style quadkey: one digit per zoom, 0 to 3.inttmsY()The y of this tile in the TMS scheme, which counts from the bottom.toString()intx()inty()intz()
-
Constructor Details
-
Tile
public Tile(int z, int x, int y) ThrowsIllegalArgumentExceptionif the tile is not on the grid.
-
-
Method Details
-
z
public int z() -
x
public int x() -
y
public int y() -
bounds
The tile's area in Web Mercator metres. -
lonLatBounds
The tile's area in degrees of longitude and latitude. -
tmsY
public int tmsY()The y of this tile in the TMS scheme, which counts from the bottom. -
parent
The tile one zoom out that contains this one. ThrowsIllegalStateExceptionat zoom 0. -
children
The four tiles one zoom in, top left, top right, bottom left, bottom right. -
quadKey
Bing-style quadkey: one digit per zoom, 0 to 3. Empty at zoom 0. -
fromQuadKey
The tile a quadkey names. -
equals
-
hashCode
public int hashCode() -
toString
-