import arcpy
fc = 'c:/data/base.gdb/well'
fields = ['WELL_ID', 'WELL_TYPE', 'SHAPE@XY']
# For each row print the WELL_ID and WELL_TYPE fields, and the
# the feature's x,y coordinates
with arcpy.da.SearchCursor(fc, fields) as cursor:
for row in cursor:
print('{0}, {1}, {2}'.format(row[0], row[1], row[2]))
4 个回复
turtle
赞同来自:
searchCursor官方帮助文档
帮助中的代码片段:
另外其他的入门资料可参考文章地址:
liutian0808 - arcgis入门新手,请多多包含
赞同来自:
潘建伟
赞同来自:
注意copy raster工具数据输出shapefile文件名要用行内变量,如截图2所示,要不然你每次创建的点文件都是一个名字了。
雪山冰淇淋
赞同来自:
我想请教一下具体过程,我也正在困惑这个问题
要回复问题请先登录或注册
发起人
arcgis入门新手,请多多包含
相关问题
问题状态
—— 扫技术支持中心微信服务号!
—— 让GIS知乎问答随时随地!