//提取面节点坐标函数,陆丛携返回郑游一个坐早伏标字符串
private string getShpXY(IPolygon polygon)
{
IPointCollection pc = polygon as IPointCollection;
string strXY="";
string x;
string y;
int sum = 0;
for(int i=0;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; }
首先把featurelayer的feature取出来,培扰再取出feature的shape值,shape就是几何图形。这些几何图形无非都是一系列的点,你再根据图形的类型取出点即可。做到最后中中物一点,你需要了解arcgis几何是如何通过点构成的,给你个链接,看了自然就明白了。
www.tuicool.com+articles+UfaQFf
(把上面卖液的+换成/就是地址)