Ejemplo n.º 1
0
        public void GeodToUTM()
        {
            UTMCoord utm = CoordConverter.GeodToUTM(Real.Geod);

            Debug.Log(utm.X + " -> " + Real.UTM.X);
            Debug.Log(utm.Y + " -> " + Real.UTM.Y);
            Debug.Log(utm.Z + " -> " + Real.UTM.Z);
            Debug.Log(utm.Zone + " -> " + Real.UTM.Zone);
            Debug.Log(utm.IsNorthHemisphere + " -> " + Real.UTM.IsNorthHemisphere);

            Assert.AreEqual(Real.UTM.X, utm.X, 0.5);
            Assert.AreEqual(Real.UTM.Y, utm.Y, 0.5);
            Assert.AreEqual(Real.UTM.Z, utm.Z, 0.001);
            Assert.AreEqual(utm.Zone, Real.UTM.Zone);
            Assert.AreEqual(utm.IsNorthHemisphere, Real.UTM.IsNorthHemisphere);
        }
Ejemplo n.º 2
0
 public void TestMethod9()
 {
     coords2 = new UTMCoord(-1, 'U', 481375, 5466221);
 }
Ejemplo n.º 3
0
 public void TestMethod7()
 {
     coords2 = new UTMCoord(10, 'Z', 481375, 5466221);
 }