19 lat = DMS::Decode(52,39,27.2531),
20 lon = DMS::Decode( 1,43, 4.5177);
24 OSGB::GridReference(x, y, 2, gridref);
25 cout << fixed << setprecision(3)
26 << x <<
" " << y <<
" " << gridref <<
"\n";
30 string gridref =
"TG5113";
33 OSGB::GridReference(gridref, x, y, prec);
35 OSGB::Reverse(x, y, lat, lon);
36 cout << fixed << setprecision(8)
37 << prec <<
" " << lat <<
" " << lon <<
"\n";
40 catch (
const exception&
e) {
41 cerr <<
"Caught exception: " << e.what() <<
"\n";
Header for GeographicLib::OSGB class.
Namespace for GeographicLib.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
Header for GeographicLib::DMS class.