Go to the documentation of this file.
16 int main(
int argc,
char *argv[]) {
18 std::cerr <<
"Usage: " << argv[0] <<
" Lon Lat" << std::endl;
22 int ReferenceEllipsoid = 23;
25 sscanf(argv[1],
"%lf", &Lon);
26 sscanf(argv[2],
"%lf", &Lat);
31 LLtoUTM(ReferenceEllipsoid, Lat, Lon, UTMNorthing, UTMEasting, UTMZone);
33 std::cout <<
"+zone=" << UTMZone << std::endl;
34 std::cout <<
"easting=" << std::fixed << std::setprecision(0)
35 << UTMEasting << std::endl;
36 std::cout <<
"northing=" << std::fixed << std::setprecision(0)
37 << UTMNorthing << std::endl;
void LLtoUTM(int ReferenceEllipsoid, const double Lat, const double Long, double &UTMNorthing, double &UTMEasting, char *UTMZone)
int main(int argc, char *argv[])