当前位置: 首页>>代码示例>>C#>>正文


C# ICoordinateSystem.GetAxis方法代码示例

本文整理汇总了C#中ICoordinateSystem.GetAxis方法的典型用法代码示例。如果您正苦于以下问题:C# ICoordinateSystem.GetAxis方法的具体用法?C# ICoordinateSystem.GetAxis怎么用?C# ICoordinateSystem.GetAxis使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ICoordinateSystem的用法示例。


在下文中一共展示了ICoordinateSystem.GetAxis方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CompoundCoordinateSystem

        /// <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);
            }
        }
开发者ID:vmoll,项目名称:geotools,代码行数:40,代码来源:CompoundCoordinateSystem.cs

示例2: FittedCoordinateSystem

		/// <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));
            }
		}
开发者ID:haoas,项目名称:ProjNet4GeoAPI,代码行数:24,代码来源:FittedCoordinateSystem.cs


注:本文中的ICoordinateSystem.GetAxis方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。