Example #1
0
        public void TestParseMGRS()
        {
            UtmPoint utmPoint         = UtmPoint.ParseMgrsString("33UVS1177755984");
            UtmPoint utmPointExpected = new UtmPoint("33U 0411777 5655984");

            Assert.IsTrue(utmPointExpected.Equals(utmPoint));
        }
Example #2
0
        public void TestCalcUTM()
        {
            // Dresden according to Wikipedia : 13° 44' 29"E 51° 02' 55"N
            GeoPoint basePoint = new GeoPoint(51.0 + 02.0 / 60.0 + 55.0 / 3600.0, 13.0 + 44.0 / 60.0 + 29.0 / 3600.0);
            UtmPoint utmPoint = basePoint.CalcUTM();

            // Expected result: Zone 33 North, Northing 5655984 Easting 411777
            UtmPoint expected = new UtmPoint(411777, 5655984, 33, true);
            Assert.IsTrue(expected.Equals(utmPoint));
        }
Example #3
0
        public void TestCalcUTM()
        {
            // Dresden according to Wikipedia : 13° 44' 29"E 51° 02' 55"N
            GeoPoint basePoint = new GeoPoint(51.0 + 02.0 / 60.0 + 55.0 / 3600.0, 13.0 + 44.0 / 60.0 + 29.0 / 3600.0);
            UtmPoint utmPoint  = basePoint.CalcUTM();

            // Expected result: Zone 33 North, Northing 5655984 Easting 411777
            UtmPoint expected = new UtmPoint(411777, 5655984, 33, true);

            Assert.IsTrue(expected.Equals(utmPoint));
        }
Example #4
0
 public void TestParseMGRS()
 {
     UtmPoint utmPoint = UtmPoint.ParseMgrsString("33UVS1177755984");
     UtmPoint utmPointExpected = new UtmPoint("33U 0411777 5655984");
     Assert.IsTrue(utmPointExpected.Equals(utmPoint));
 }