48 using namespace MSP::CCS;
52 const double PI = 3.14159265358979323e0;
64 if (strcmp(ellipsoidCode,
"WE") != 0)
86 double longitude = geodeticCoordinates->
longitude();
87 double latitude = geodeticCoordinates->
latitude();
90 double northing = semiMajorAxis * log( tan(
PI/4.0 + latitude / 2.0 ) );
103 double easting = mapProjectionCoordinates->
easting();
104 double northing = mapProjectionCoordinates->
northing();
107 double latitude = 2.0 * atan( exp( northing /
semiMajorAxis ) ) -
PI/2.0;
EllipsoidParameters * getParameters() const
static const char * webmEllipsoid
static const char * webmConversionTo
MSP::CCS::MapProjectionCoordinates * convertFromGeodetic(MSP::CCS::GeodeticCoordinates *geodeticCoordinates)
WebMercator(char *ellipsoidCode)
MSP::CCS::GeodeticCoordinates * convertToGeodetic(MSP::CCS::MapProjectionCoordinates *mapProjectionCoordinates)