1、首先,打开arcgis软件。
2、然后,打开并Python编辑脚本。
3、然后,定义输出文件位置。date = open(r"C:\Users\Administrator\Desktop\123\aaaa.txt","a")
4、根据拐点坐标txt格式要求输入代码:for row in infc:date.write("地块编号:")date.write(str(row.OBJECTID_1))date.write("\n") for part in row.getValue("shape"):a = 1b = 0for i in part:b += 1for pnt in part:date.write(str(a))date.write(",,") date.write(str(pnt.X))date.write(", ")date.write(str(pnt.Y))date.write("\n")
5、然后,添加数据,运行这个脚本程序。
6、最后,读取拐点坐标完成。