时间:2022-05-12 10:54:32 | 栏目:Python代码 | 点击:次
如下所示:
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))