本文整理汇总了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);
}
}
示例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));
}
}