Azavea.Open.Reprojection.Tests.ReprojectorTests.TestReprojectNZGS2000ToWGS84 C# (CSharp) Method

TestReprojectNZGS2000ToWGS84() private method

private TestReprojectNZGS2000ToWGS84 ( ) : void
return void
        public void TestReprojectNZGS2000ToWGS84()
        {
            Point reprojected = Reprojector.Reproject(Reprojector.NZGD2000, Reprojector.WGS84, _nzgd2000PointInNz.X, _nzgd2000PointInNz.Y);
            double diffX = Math.Abs(reprojected.X - _wgs84PointInNz.X);
            double diffY = Math.Abs(reprojected.Y - _wgs84PointInNz.Y);
            Assert.Less(diffX, _wgs84Accuracy, "Reprojection from NZGD2000 to WGS84 was not accurate enough in the X dimension.");
            Assert.Less(diffY, _wgs84Accuracy, "Reprojection from NZGD2000 to WGS84 was not accurate enough in the Y dimension.");
        }