Beispiel #1
0
        public virtual Object Clone()
        {
            var projection = new Projection((Ellipsoid)Ellipsoid.Clone(), null);

            CopyParams(projection);
            return(projection);
        }
Beispiel #2
0
// ReSharper restore InconsistentNaming

        protected void CopyParams(Projection to)
        {
            if (to == null)
            {
                throw new ArgumentNullException("to");
            }
            to._a                   = _a;
            to._alpha               = _alpha;
            to._e                   = _e;
            to._ellipsoid           = (Ellipsoid)_ellipsoid.Clone();
            to._es                  = _es;
            to._falseEasting        = _falseEasting;
            to._falseNorthing       = _falseNorthing;
            to._fromMetres          = _fromMetres;
            to._isSouth             = _isSouth;
            to._lonc                = _lonc;
            to._maxLatitude         = _maxLatitude;
            to._maxLongitude        = _maxLongitude;
            to._minLatitude         = _minLatitude;
            to._minLongitude        = _minLongitude;
            to._name                = _name;
            to._oneEs               = _oneEs;
            to._projectionLatitude  = _projectionLatitude;
            to._projectionLatitude1 = _projectionLatitude1;
            to._projectionLatitude2 = _projectionLatitude2;
            to._projectionLongitude = _projectionLongitude;
            to._roneEs              = _roneEs;
            to._scaleFactor         = _scaleFactor;
            to._spherical           = _spherical;
            to._totalScale          = _totalScale;
            to._trueScaleLatitude   = _trueScaleLatitude;
            to._unit                = _unit;
            to._primeMeridian       = _primeMeridian;
        }