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);
        }