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);
36 cout << fixed << setprecision(8)
37 << prec <<
" " <<
lat <<
" " <<
lon <<
"\n";
40 catch (
const exception&
e) {
41 cerr <<
"Caught exception: " <<
e.what() <<
"\n";