9 double lat = 57.64911,
lon = 10.40744;
11 for (
int prec = 0; prec <= 2; ++prec) {
13 Console::WriteLine(String::Format(
"Precision: {0} GARS: {1}", prec, gars));
18 String^ gars =
gcnew String(
"381NH45");
20 for (
int len = 5;
len <= gars->Length; ++
len) {
22 GARS::Reverse(gars->Substring(0,
len),
lat,
lon, prec,
true);
23 Console::WriteLine(String::Format(
"Precision: {0} Latitude: {1} Longitude {2}", prec, lat, lon));
28 Console::WriteLine(String::Format(
"Caught Exception {0}", e->Message));
Exception class for NETGeographicLib.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
int main(array< System::String^>^)