예제 #1
0
        public void C2()
        {
            var GridRef = new OsGridRef(651409.903, 313177.270);
            var Osgb    = GridRef.ToLatLon(Datum.OSGB36);

            Assert.AreEqual("52°" + DMS.Separator + "39′" + DMS.Separator + "27.2531″N, 001°" + DMS.Separator + "43′" + DMS.Separator + "04.5177″E", Osgb.ToString("dms", 4));
        }
예제 #2
0
        public void DgRoundTripOsgb36Numeric()
        {
            OsGridRef         DgGridRef = OsGridRef.Parse("TQ 44359 80653");
            LatLonEllipsoidal DgOsgb    = DgGridRef.ToLatLon(Datum.OSGB36);

            Assert.AreEqual("544359,180653", DgOsgb.ToGridRef().ToString(0));
        }
예제 #3
0
        public void C2NRoundTrip()
        {
            var GridRef  = new OsGridRef(651409.903, 313177.270);
            var Osgb     = GridRef.ToLatLon(Datum.OSGB36);
            var GridRef2 = Osgb.ToGridRef();

            Assert.AreEqual(313177.270, GridRef2.Northing);
        }