Пример #1
0
        public void SetUp()
        {
            Dictionary <CoordinateOperationParameter, Object> parameters = new Dictionary <CoordinateOperationParameter, Object>();

            parameters.Add(CoordinateOperationParameters.Ordinate1OfEvaluationPointInTarget, Length.FromMetre(-129.549));
            parameters.Add(CoordinateOperationParameters.Ordinate2OfEvaluationPointInTarget, Length.FromMetre(-208.185));
            parameters.Add(CoordinateOperationParameters.XAxisRotation, Angle.FromArcSecond(1.56504));
            parameters.Add(CoordinateOperationParameters.ScaleDifference, 1.55);

            _transformation = new SimilarityTransformation("EPSG::9621", "UTM zone 31N", parameters);
        }
Пример #2
0
        public void SetUp()
        {
            Dictionary <CoordinateOperationParameter, Object> parameters = new Dictionary <CoordinateOperationParameter, Object>();

            parameters.Add(CoordinateOperationParameters.Ordinate1OfEvaluationPointInTarget, Length.FromMetre(-129.549));
            parameters.Add(CoordinateOperationParameters.Ordinate2OfEvaluationPointInTarget, Length.FromMetre(-208.185));
            parameters.Add(CoordinateOperationParameters.XAxisRotation, Angle.FromArcSecond(1.56504));
            parameters.Add(CoordinateOperationParameters.ScaleDifference, 1.0000015504);

            CoordinateReferenceSystem source = TestUtilities.ReferenceProvider.ProjectedCoordinateReferenceSystems["EPSG::23031"];
            CoordinateReferenceSystem target = TestUtilities.ReferenceProvider.ProjectedCoordinateReferenceSystems["EPSG::25831"];
            AreaOfUse areaOfUse = TestUtilities.ReferenceProvider.AreasOfUse["EPSG::3732"];

            this.transformation = new SimilarityTransformation("EPSG::5166", "ED50 / UTM zone 31N to ETRS89 / UTM zone 31N (1)", parameters, source, target, areaOfUse);
        }