public void EpsgExample_1_3_3_B_InverseTest() { var projection = new Mercator( new GeographicCoordinate(0.73303829, 0.89011792), new Vector2(0, 0), new SpheroidEquatorialInvF(6378245, 298.3) ); var expected = new GeographicCoordinate(0.9250245, 0.9250245); var input = new Point2(165704.29, 5171848.07); var result = projection.GetInverse().TransformValue(input); Assert.AreEqual(expected.Latitude, result.Latitude, 0.000000006); Assert.AreEqual(expected.Longitude, result.Longitude, 0.000000005); }
public void EpsgExample_1_3_3_A_InverseTest() { var projection = new Mercator( 1.91986218, 0.997, new Vector2(3900000, 900000), new SpheroidEquatorialInvF(6377397.155, 299.15281) ); var expected = new GeographicCoordinate(-0.05235988, 2.09439510); var input = new Point2(5009726.58, 569150.82); var result = projection.GetInverse().TransformValue(input); Assert.AreEqual(expected.Latitude, result.Latitude, 0.000000003); Assert.AreEqual(expected.Longitude, result.Longitude, 0.000000005); }