最近在研究C#+arcengine,本人属于不写下来记不住的型,就把最近的功能全部写成博客记录下来,以备以后使用,有大神看到,路过就好
通过polyline文件路径获得其点集合,程序很简单,如下
/// <summary>/// 得到点集合
/// </summary>
/// <param name="path"> line的路径+名称</param>
/// <returns></returns>
private List<IPoint> GetPointCollection(string path)
{
try
{
List<IPoint> pointCollList = new List<IPoint>();
int iindx = path.LastIndexOf("\\");
string suffixRasterName = (path.Substring(iindx + 1));//线的的名称
string maskPath = path.Remove(iindx);//线的路径
//创建工作空间
IWorkspaceFactory workspaceFactory = new ShapefileWorks