#include <MAP/LonLat.h>
Public Member Functions | |
LonLat () | |
LonLat (const double _lon, const double _lat) | |
LonLat (const PixelCoordinate &px) | |
const PixelCoordinate | toPixels (int magnification) const |
void | toMeters (double &meterX, double &meterY) const |
Static Public Member Functions | |
static LonLat | fromMeters (const double meterX, const double meterY) |
Public Attributes | |
double | lon |
double | lat |
|
Creates a LonLat initialized to (0, 0). |
|
Creates a LonLat. |
|
Creates a LonLat from thr given global pixel coordinate. |
|
Creates a LonLat from the given global meter coordinates. |
|
Converts this to global pixel coordinates. Projection is assumed to be spherical Mercator (as opposed to ellipsoidal). This results in a slight Y-axis error. Spherical Mercator is chosen for compatibility with online tile servers such as Google Maps and Microsoft Virtual Earth. |
|
Convert this to meters. |
|
Longitude |
|
Latitude |