如下所示:
1
2
3
4
5
6
7
8
|
import arcpy
... from arcpy import env
... env.workspace = "C:\\Users\\Administrator\\Documents\\ArcGIS\\Default.gdb"
... fc = "bou2_4p_Select"
... cursor = arcpy.da.SearchCursor( "bou2_4p_Select" ,[ "SHAPE@XY" ])
... for row in cursor:
... x,y = row[ 0 ]
... print ( "{0},{1}" . format (x,y))
|
以上这篇利用arcgis的python读取要素的X,Y方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持服务器之家。
原文链接:https://blog.csdn.net/sinat_25006091/article/details/79222732