public final class QuadTiling extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
NR_LEVELS
The maximum number of levels to split the quads
|
static int |
TILES_PER_LEVEL
How many tiles there are per level
|
static int |
TILES_PER_LEVEL_SHIFT
The log(2) of how many tiles there are per level
|
static double |
WORLD_PARTS
The number of parts the world is split into in each direction
|
static int |
X_BIAS
The offset of the world in x direction
|
static int |
X_PARTS
The size of the world in X direction
|
static int |
Y_BIAS
The offset of the world in y direction
|
static int |
Y_PARTS
The size of the world in y direction
|
Modifier | Constructor and Description |
---|---|
private |
QuadTiling() |
Modifier and Type | Method and Description |
---|---|
static byte |
index(double lat,
double lon,
int level)
Returns quad tiling index for given coordinates and level.
|
(package private) static long |
lat2y(double lat) |
(package private) static long |
lon2x(double lon) |
static LatLon |
tile2LatLon(long quad)
Converts a tile index to a lat/lon position
|
public static final int NR_LEVELS
public static final double WORLD_PARTS
public static final int TILES_PER_LEVEL_SHIFT
public static final int TILES_PER_LEVEL
public static final int X_PARTS
public static final int X_BIAS
public static final int Y_PARTS
public static final int Y_BIAS
private QuadTiling()
public static LatLon tile2LatLon(long quad)
quad
- The tile to convertstatic long lon2x(double lon)
static long lat2y(double lat)
public static byte index(double lat, double lon, int level)
lat
- latitudelon
- longitudelevel
- level