获取Polyline两点间的线段
来源:互联网 发布:日本遗孤知乎 编辑:程序博客网 时间:2024/05/16 17:06
/// <summary>
/// 创建区间线段
/// </summary>
/// <param name="pLine">输入的线图形</param>
/// <param name="p1">插入的其中一个点</param>
/// <param name="p2">插入的一种一个点</param>
/// <returns>这两点间的线段</returns>
/// 创建人 : 懒羊羊
private IPolyline BuildLine(IPolyline pLine, IPoint p1, IPoint p2)
{
bool isSplit;
int splitIndex, segIndex;
//插入第一点,segIndex记录插入点的相对线的节点位置
pLine.SplitAtPoint(p1, true, false, out isSplit, out splitIndex, out segIndex);
int fIndex = segIndex;
//插入第二点
pLine.SplitAtPoint(p2, true, false, out isSplit, out splitIndex, out segIndex);
int sIndex = segIndex;
//比较一下插入第一点和第二点的节点次序
if (fIndex > sIndex)
{
int temp = fIndex;
fIndex = sIndex;
sIndex = temp;
}
IPointCollection pPointCol = new PolylineClass();
object o = Type.Missing;
//利用两点区间,获取线上区间所在的点,并将其转换为线
IPointCollection LineCol = pLine as IPointCollection;
for (int i = fIndex; i <= sIndex; i++)
{
pPointCol.AddPoint(LineCol.get_Point(i), ref o, ref o);
}
return pPointCol as IPolyline;
}
- 获取Polyline两点间的线段
- 获取选择PolyLine多段线的各个端点
- 获取GPS 两点间的直线距离
- 获取所选取的多段线(polyline)的两个端点
- l两点之间的距离--线段类
- 获取触摸两点的坐标
- 获取两点之间的距离
- 获取触摸的两点距离
- ArcEngine获取曲线上任意两点间的距离
- 根据经纬度获取两点间的球面距离
- AE获取polyline所有点
- ArcGIS JavaScript API实现Polyline外两点分割该线
- 两点间的距离
- 两点间的距离
- 获取当前位置,计算两点之间的距离
- Unity3D 获取两点之间的角度
- php获取两点经纬度之间的距离
- 获取两点的偏移量(角度)
- 22
- uclinux-2008R1.5-RC3(bf561)到VDSP5的移植(21):dlb创建
- http://blog.csdn.net/rick1126/relatedarticles/2704.aspx
- How to install ASP.NET 1.1 with IIS7 on Vista and Windows 2008
- asp.net页面缓存
- 获取Polyline两点间的线段
- 链接有关VLC的牛人博客
- 活着就是为了改变
- perl 常用函数(2)-可供查阅使用
- DDNS+DHCP环境搭建
- 二十五大软件编程错误
- 浅谈C#的MVC实现
- 什么是你的不可替代性和核心竞争力
- 方案改进:直接通过User Control生成HTML——转自 博客园 老赵