python 遍历GIS
时间: 2023-10-22 07:27:20 浏览: 77
python实现图数据的遍历
要在Python中遍历GIS数据,您可以使用ArcPy模块中的SearchCursor函数。以下是一个示例代码:
```
import arcpy
fc = r'E:\a\cs.gdb\cs' # 替换为您的数据路径
for row in arcpy.da.SearchCursor(fc, ["OID@", "SHAPE@"]):
print("Feature{}:".format(row<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [python 遍历输出arcgis中线或面的折点坐标](https://blog.csdn.net/weixin_46489415/article/details/107014505)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文