首页 > 其他 > 详细

获取某线要素的结点及各结点的坐标值

时间:2020-05-14 17:52:33      阅读:85      评论:0      收藏:0      [点我收藏+]

//提取面百节点坐标度函数问,返回一个答坐标字符回串

private string getShpXY(IPolygon polygon)

{

IPointCollection pc = polygon as IPointCollection;

string strXY="";

string x;

string y;

int sum = 0;

for(int i=0;i<pc.PointCount;i++)

{

if (sum == 0)

{

sum = pc.PointCount;

strXY = sum.ToString();

}

 

x = pc.get_Point(i).X.ToString();

y = pc.get_Point(i).Y.ToString();

strXY = strXY + "\r\n" + x + "∴答" + y + "∴0.000000";  

}

return strXY;

}

获取某线要素的结点及各结点的坐标值

原文:https://www.cnblogs.com/774249302com/p/12890236.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!