コード例 #1
0
        public void EpsgExample_1_3_3_2_Test()
        {
            var projection = new PopularVisualizationPseudoMercator(
                new GeographicCoordinate(0, 0),
                new Vector2(0, 0),
                new SpheroidEquatorialPolar(6378137, 298.2572236)
                );
            var input    = new GeographicCoordinate(0.425542460, -1.751147016);
            var expected = new Point2(-11169055.58, 2800000.00);

            var result = projection.TransformValue(input);

            Assert.AreEqual(expected.X, result.X, 0.005);
            Assert.AreEqual(expected.Y, result.Y, 0.006);
        }
コード例 #2
0
        public void EpsgExample_1_3_3_2_Test()
        {
            var projection = new PopularVisualizationPseudoMercator(
                new GeographicCoordinate(0, 0),
                new Vector2(0, 0),
                new SpheroidEquatorialPolar(6378137, 298.2572236)
            );
            var input = new GeographicCoordinate(0.425542460, -1.751147016);
            var expected = new Point2(-11169055.58, 2800000.00);

            var result = projection.TransformValue(input);

            Assert.AreEqual(expected.X, result.X, 0.005);
            Assert.AreEqual(expected.Y, result.Y, 0.006);
        }