public void ToLatLngTestWithNad27() { var utmd = new UtmRef(10, 'T', 574595, 5316784, NAD27ContiguousUSDatum.Instance); var lat = 48.00196908; var lon = -121.99999492; var latlon = utmd.ToLatLng(); Assert.AreEqual(lat, latlon.Latitude, 0.00000001); Assert.AreEqual(lon, latlon.Longitude, 0.00000001); }
public void ToLatLngTest() { var autm = new UtmRef(10, 'T', 574595, 5316784); var alat = 47.99999993; var alon = -122.000001509; var alatlon = autm.ToLatLng(); Assert.AreEqual(alat, alatlon.Latitude, 0.00000001); Assert.AreEqual(alon, alatlon.Longitude, 0.00000001); }
public void ToLatLngSouthern() { var autm = new UtmRef(10, 'D', 574595, 5316784); var alat = -42.2976024212208; var alon = -122.095060688641; var alatlon = autm.ToLatLng(); Assert.AreEqual(alat, alatlon.Latitude, 0.00000001); Assert.AreEqual(alon, alatlon.Longitude, 0.00000001); }