コード例 #1
0
        public void GeodeticToGridTest()
        {
            var coordinate = new GeodeticCoordinate {
                Latitude = 63.90786d, Longitude = 19.75247d
            };
            var projection = SwedishProjections.RT90_25GonV;
            var expected   = new GridCoordinate {
                X = 7094946, Y = 1693701, Projection = SwedishProjections.RT90_25GonV
            };
            var actual = GaussKruger.GeodeticToGrid(coordinate, projection);

            Assert.IsTrue(expected.Equals(actual));
        }