Exemplo n.º 1
0
        /// <summary>
        /// Creates a compound coordinate system.
        /// </summary>
        /// <param name="headCRS">The first coordinate system.</param>
        /// <param name="tailCRS">The second coordinate system.</param>
        /// <param name="remarks">Remarks about this object.</param>
        /// <param name="authority">The name of the authority.</param>
        /// <param name="authorityCode">The code the authority uses to identidy this object.</param>
        /// <param name="name">The name of the object.</param>
        /// <param name="alias">The alias of the object.</param>
        /// <param name="abbreviation">The abbreviated name of this object.</param>
        internal CompoundCoordinateSystem(ICoordinateSystem headCRS,
                                          ICoordinateSystem tailCRS,
                                          string remarks, string authority, string authorityCode, string name, string alias, string abbreviation)
            : base(remarks, authority, authorityCode, name, alias, abbreviation)
        {
            if (headCRS == null)
            {
                throw new ArgumentNullException("headCRS");
            }
            if (tailCRS == null)
            {
                throw new ArgumentNullException("tailCRS");
            }

            _headCRS  = headCRS;
            _tailCRS  = tailCRS;
            _axisInfo = new IAxisInfo[this.Dimension];

            // copy axis information
            for (int i = 0; i < headCRS.Dimension; i++)
            {
                _axisInfo[i] = _headCRS.GetAxis(i);
            }
            int offset = headCRS.Dimension;

            for (int i = 0; i < tailCRS.Dimension; i++)
            {
                _axisInfo[i + offset] = _tailCRS.GetAxis(i);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Creates a compound coordinate system.
        /// </summary>
        /// <param name="headCRS">The first coordinate system.</param>
        /// <param name="tailCRS">The second coordinate system.</param>
        /// <param name="remarks">Remarks about this object.</param>
        /// <param name="authority">The name of the authority.</param>
        /// <param name="authorityCode">The code the authority uses to identidy this object.</param>
        /// <param name="name">The name of the object.</param>
        /// <param name="alias">The alias of the object.</param>
        /// <param name="abbreviation">The abbreviated name of this object.</param>
        internal CompoundCoordinateSystem(ICoordinateSystem headCRS,
										ICoordinateSystem tailCRS,
										string remarks, string authority, string authorityCode, string name, string alias, string abbreviation)
            : base(remarks, authority, authorityCode, name, alias, abbreviation)
        {
            if (headCRS==null)
            {
                throw new ArgumentNullException("headCRS");
            }
            if (tailCRS==null)
            {
                throw new ArgumentNullException("tailCRS");
            }

            _headCRS = headCRS;
            _tailCRS = tailCRS;
            _axisInfo = new IAxisInfo[this.Dimension];

            // copy axis information
            for(int i=0;i<headCRS.Dimension;i++)
            {
                _axisInfo[i]=_headCRS.GetAxis(i);
            }
            int offset=headCRS.Dimension;
            for (int i=0;i<tailCRS.Dimension;i++)
            {
                _axisInfo[i+offset]=_tailCRS.GetAxis(i);
            }
        }
 /// <summary>
 /// Creates an instance of FittedCoordinateSystem using the specified parameters
 /// </summary>
 /// <param name="baseSystem">Underlying coordinate system.</param>
 /// <param name="transform">Transformation from fitted coordinate system to the base one</param>
 /// <param name="name">Name</param>
 /// <param name="authority">Authority name</param>
 /// <param name="code">Authority-specific identification code.</param>
 /// <param name="alias">Alias</param>
 /// <param name="abbreviation">Abbreviation</param>
 /// <param name="remarks">Provider-supplied remarks</param>
 protected internal FittedCoordinateSystem(ICoordinateSystem baseSystem, IMathTransform transform,
                                           string name, string authority, long code, string alias, string remarks, string abbreviation)
     : base(name, authority, code, alias, abbreviation, remarks)
 {
     _BaseCoordinateSystem = baseSystem;
     _ToBaseTransform      = transform;
     //get axis infos from the source
     base.AxisInfo = new List <AxisInfo> (baseSystem.Dimension);
     for (int dim = 0; dim < baseSystem.Dimension; dim++)
     {
         base.AxisInfo.Add(baseSystem.GetAxis(dim));
     }
 }
		/// <summary>
		/// Creates an instance of FittedCoordinateSystem using the specified parameters
		/// </summary>
        /// <param name="baseSystem">Underlying coordinate system.</param>
        /// <param name="transform">Transformation from fitted coordinate system to the base one</param>
		/// <param name="name">Name</param>
		/// <param name="authority">Authority name</param>
		/// <param name="code">Authority-specific identification code.</param>
		/// <param name="alias">Alias</param>
		/// <param name="abbreviation">Abbreviation</param>
		/// <param name="remarks">Provider-supplied remarks</param>
        protected internal FittedCoordinateSystem (ICoordinateSystem baseSystem, IMathTransform transform,
            string name, string authority, long code, string alias, string remarks, string abbreviation)
			: base(name, authority, code, alias, abbreviation, remarks)
		{
            _BaseCoordinateSystem = baseSystem;
            _ToBaseTransform = transform;
            //get axis infos from the source
            base.AxisInfo = new List<AxisInfo> (baseSystem.Dimension);
            for (int dim = 0; dim < baseSystem.Dimension; dim++)
            {
                base.AxisInfo.Add (baseSystem.GetAxis (dim));
            }
		}
Exemplo n.º 5
0
 public AxisInfo GetAxis(int dimension)
 {
     return(_coordinateSystem.GetAxis(dimension));
 }