|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.epseelon.mobimap.util.GeoUtil
public class GeoUtil
This class offers a few utility methods related to maps and coordinate calculations
| Constructor Summary | |
|---|---|
GeoUtil()
|
|
| Method Summary | |
|---|---|
static Point2D |
getBitmapCoordinate(double latitude,
double longitude,
int referenceZoomLevel,
TileFactoryInfo info)
Given a position (latitude/longitude pair) and a zoom level, return the appropriate point in pixels. |
static Point2D |
getBitmapCoordinate(GeoPosition c,
int zoomLevel,
TileFactoryInfo info)
Given a position (latitude/longitude pair) and a zoom level, return the appropriate point in pixels. |
static Dimension |
getMapSize(int referenceZoomLevel,
TileFactoryInfo info)
|
static GeoPosition |
getPosition(Point2D pixelCoordinate,
int referenceZoomLevel,
TileFactoryInfo info)
Convert an on screen pixel coordinate and a zoom level to a geo position |
static boolean |
isValidTile(int x,
int y,
int referenceZoomLevel,
TileFactoryInfo info)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeoUtil()
| Method Detail |
|---|
public static Dimension getMapSize(int referenceZoomLevel,
TileFactoryInfo info)
public static GeoPosition getPosition(Point2D pixelCoordinate,
int referenceZoomLevel,
TileFactoryInfo info)
public static Point2D getBitmapCoordinate(GeoPosition c,
int zoomLevel,
TileFactoryInfo info)
c - A lat/lon pairzoomLevel - the zoom level to extract the pixel coordinate for
public static Point2D getBitmapCoordinate(double latitude,
double longitude,
int referenceZoomLevel,
TileFactoryInfo info)
latitude - longitude - referenceZoomLevel - the zoom level to extract the pixel coordinate for
public static boolean isValidTile(int x,
int y,
int referenceZoomLevel,
TileFactoryInfo info)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||