public class Projection
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static double |
latitudeToPixelY(double latitude,
int zoomLevel)
Converts a latitude coordinate (in degrees) to a pixel Y coordinate at a
certain zoom level.
|
static long |
latitudeToTileY(double latitude,
int zoomLevel)
Converts a latitude coordinate (in degrees) to a tile Y number at a
certain zoom level.
|
static double |
longitudeToPixelX(double longitude,
int zoomLevel)
Converts a longitude coordinate (in degrees) to a pixel X coordinate at a
certain zoom level.
|
static long |
longitudeToTileX(double longitude,
int zoomLevel)
Converts a longitude coordinate (in degrees) to the tile X number at a
certain zoom level.
|
static double |
pixelXToLongitude(double pixelX,
int zoomLevel)
Converts a pixel X coordinate at a certain zoom level to a longitude
coordinate.
|
static int |
pixelXToTileX(double pixelX,
int zoomLevel)
Converts a pixel X coordinate to the tile X number.
|
static double |
pixelYToLatitude(double pixelY,
int zoomLevel)
Converts a pixel Y coordinate at a certain zoom level to a latitude
coordinate.
|
static int |
pixelYToTileY(double pixelY,
int zoomLevel)
Converts a pixel Y coordinate to the tile Y number.
|
static double |
tileXToLongitude(long tileX,
int zoomLevel)
Converts a tile X number at a certain zoom level to a longitude
coordinate.
|
static double |
tileYToLatitude(long tileY,
int zoomLevel)
Converts a tile Y number at a certain zoom level to a latitude
coordinate.
|
public static double tileXToLongitude(long tileX,
int zoomLevel)
tileX - the tile X number that should be converted.zoomLevel - the zoom level at which the number should be converted.public static double tileYToLatitude(long tileY,
int zoomLevel)
tileY - the tile Y number that should be converted.zoomLevel - the zoom level at which the number should be converted.public static long latitudeToTileY(double latitude,
int zoomLevel)
latitude - the latitude coordinate that should be converted.zoomLevel - the zoom level at which the coordinate should be converted.public static long longitudeToTileX(double longitude,
int zoomLevel)
longitude - the longitude coordinate that should be converted.zoomLevel - the zoom level at which the coordinate should be converted.public static int pixelXToTileX(double pixelX,
int zoomLevel)
pixelX - the pixel X coordinate that should be converted.zoomLevel - the zoom level at which the coordinate should be converted.public static int pixelYToTileY(double pixelY,
int zoomLevel)
pixelY - the pixel Y coordinate that should be converted.zoomLevel - the zoom level at which the coordinate should be converted.public static double pixelXToLongitude(double pixelX,
int zoomLevel)
pixelX - the pixel X coordinate that should be converted.zoomLevel - the zoom level at which the coordinate should be converted.public static double longitudeToPixelX(double longitude,
int zoomLevel)
longitude - the longitude coordinate that should be converted.zoomLevel - the zoom level at which the coordinate should be converted.public static double pixelYToLatitude(double pixelY,
int zoomLevel)
pixelY - the pixel Y coordinate that should be converted.zoomLevel - the zoom level at which the coordinate should be converted.public static double latitudeToPixelY(double latitude,
int zoomLevel)
latitude - the latitude coordinate that should be converted.zoomLevel - the zoom level at which the coordinate should be converted.