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

TestReprojectPAStatePlaneToWGS84() private method

private TestReprojectPAStatePlaneToWGS84 ( ) : void
return void
        public void TestReprojectPAStatePlaneToWGS84()
        {
            Point reprojected = Reprojector.Reproject(Reprojector.PAStatePlane, Reprojector.WGS84, _paStatePlanePoint.X, _paStatePlanePoint.Y);
            double diffX = Math.Abs(reprojected.X - _wgs84Point.X);
            double diffY = Math.Abs(reprojected.Y - _wgs84Point.Y);
            Assert.Less(diffX, _wgs84Accuracy, "Reprojection from PA State Plane to WGS84 was not accurate enough in the X dimension.");
            Assert.Less(diffY, _wgs84Accuracy, "Reprojection from PA State Plane to WGS84 was not accurate enough in the y dimension.");
        }