当前位置:网站首页>ArcPy set the unique identification code
ArcPy set the unique identification code
2022-08-08 22:32:00 【Meili Snow Mountain GIS】
ArcPy sets the unique identifier of the whole library
# -*- coding:utf8 -*-import arcpyimport os# database pathworkspace = r'D:\rr.mdb'arcpy.env.workspace = workspacefeatureclasses = arcpy.ListFeatureClasses()i = 0# layerfor fc in featureclasses:cur = arcpy.da.UpdateCursor(fc, ['BSM'])for row in cur:row[0] = ii = i + 1cur.updateRow(row)del curprint(fc + '---successful')# data tabletableList = arcpy.ListTables()for table in tableList:curt = arcpy.da.UpdateCursor(table, ['BSM'])for rowt in curt:rowt[0] = ii = i + 1curt.updateRow(rowt)del curtprint(table + '---successful')print('Finish')边栏推荐
猜你喜欢
随机推荐
GIL和池的概念
php7.4安装ssh2扩展和使用ssh链接sftp上传下载文件
买股票要选择哪家证券公司更好?网上客户经理开户安全吗
论网络安全的重要性
MySQL8.0 及 SQL 注入
Likou Question of the Day----Maximum Average of Subarrays
微服务架构的核心关键点
冒泡排序
Node中的Events模块怎么应用
Scala encryption and hash functions
记录每天学习的新知识: Room
wsgw登录抓包记录
网上开户佣金是怎么调低的?网上客户经理开户安全吗
6.8.3 sigqueue函数
你的下一台电脑何必是电脑,探索不一样的远程操作
SRv6故障管理
国产GPU大厂景嘉微半年净利润1.25亿元 旗下产品大卖
Matlab的下载
C2758105-Flash 驱动配置参考
九大内置对象四大域









