public class TileUtils extends Object
| Constructor and Description |
|---|
TileUtils() |
| Modifier and Type | Method and Description |
|---|---|
static double[] |
MetersToLatLon(double mx,
double my)
Converts XY point from Spherical Mercator EPSG:900913 to lat/lon in WGS84
Datum
|
static int[] |
MetersToPixels(double mx,
double my,
int zoom)
Converts EPSG:900913 to pyramid pixel coordinates in given zoom level
|
static com.nutiteq.components.MapPos |
MetersToTile(com.nutiteq.components.MapPos mp,
int zoom)
Returns tile for given Mercator coordinates
|
static double[] |
PixelsToMeters(double px,
double py,
int zoom)
Converts pixel coordinates in given zoom level of pyramid to EPSG:900913
|
static com.nutiteq.components.MapPos |
PixelsToTile(int px,
int py,
int zoom)
Returns a tile covering region in given pixel coordinates
|
static double |
Resolution(int zoom)
Resolution (meters/pixel) for given zoom level (measured at Equator)
|
static com.nutiteq.components.Envelope |
TileBounds(int tx,
int ty,
int zoom)
Deprecated.
use TileBounds with projection instead
|
static com.nutiteq.components.Envelope |
TileBounds(int tx,
int ty,
int zoom,
com.nutiteq.projections.Projection proj)
Get bounds of tile
|
public static com.nutiteq.components.MapPos MetersToTile(com.nutiteq.components.MapPos mp,
int zoom)
public static com.nutiteq.components.MapPos PixelsToTile(int px,
int py,
int zoom)
px - py - zoom - public static int[] MetersToPixels(double mx,
double my,
int zoom)
mx - my - zoom - public static double Resolution(int zoom)
public static com.nutiteq.components.Envelope TileBounds(int tx,
int ty,
int zoom)
tx - ty - (bottom-top)zoom - public static com.nutiteq.components.Envelope TileBounds(int tx,
int ty,
int zoom,
com.nutiteq.projections.Projection proj)
tx - tile x (left-right)ty - tile y (top-bottom)zoom - zoom (0 = world)proj - public static double[] MetersToLatLon(double mx,
double my)
public static double[] PixelsToMeters(double px,
double py,
int zoom)
Copyright © 2014. All rights reserved.