15 double equad = 2.*0.003352811-pow(0.003352811,2);
16 double n = 6378137/sqrt((1-(pow(sin(lat1),2) * equad)));
18 double x2 = n*cos(lat1)*cos(lon1);
19 double y2 = n*cos(lat1)*sin(lon1);
20 double z2 = (n*(1-equad))*sin(lat1);
22 equad = 2.*0-pow(0.,2);
29 n = 6371007.181/sqrt((1-(pow(sin(lat2),2) * equad)));
31 a = (equad*sin(lat2)*n)+z2;
33 lat2 = atan2(a,(sqrt(pow(x2,2) + pow(y2,2))));
35 a = pow(sin(lat2),2)*equad;
37 d = (6371007.181/sqrt(1-a))-n;
39 while (fabs(d) > 0.0000001);
42 lat1 = lat2 * 57.2957795;
43 lon1 = atan2(y2,x2) * 57.2957795;
49 converter->setSourcePJ4txt(
"+proj=longlat +a=6371007.181 +b=6371007.181 +no_defs");
50 converter->setTargetPJ4txt(
"+proj=sinu +lon_0=0 +x_0=0 +y_0=0 +a=6371007.181 +b=6371007.181 +units=m +no_defs");
52 converter->convert(lon1,lat1,x,y);
static te::dt::DateTime d(2010, 8, 9, 15, 58, 39)
A Converter is responsible for the conversion of coordinates between different Coordinate Systems (CS...
void WGS84ToModiSinu(double lon, double lat, double &x, double &y)