arcgis python 获得表字段的唯一值
2024-09-07 14:44:06
#获得唯一值 by gisoracle
def getuniqueValue(inTable,inField):
rows = arcpy.da.SearchCursor(inTable,[inField])
# Create an empty list
uniqueList = []
try:
for row in rows:
v=row[0]
# If the value is not already in the list, append it
if v not in uniqueList:
uniqueList.append(v)
return uniqueList
finally: if rows:
del rows
最新文章
- 【JAVA网络流之浏览器与服务器模拟】
- python递归小疑惑
- Codeforces Gym 100570 E. Palindrome Query Manacher
- python(1) - 字符串
- 编写你的第一个 Django 程序 第1部分
- 通过百度获取IP地址对应的经纬度
- 第8章 Android数据存储与IO——File存储
- makefile死磕笔记
- NYOJ 623 A*B ProblemII
- ObjectStreamDemo
- cocos2d-x场景切换与过渡效果
- 云信推送通知 APN invalid Token
- VC下防止反汇编的办法(1)
- MySQL LIKE 子句
- c++学习中的疑问
- Eclipse Java注释模板设置简介,更改字体大小
- nyoj 三个水杯
- Spring+Netty4实现的简单通信框架
- python四则运算2.0
- ES6新用法
热门文章
- 【转载】salesforce 零基础开发入门学习(四)多表关联下的SOQL以及表字段Data type详解
- from表单中checkbox的多选,ajax转入后台,后台接受
- 查看mysql的bin-log日志
- 【leetcode】566. Reshape the Matrix
- MySQL无法启动问题解决Warning: World-writable config file ‘/etc/my.cnf’ is ignored
- Vs2017 NetCode Mvc EF Mysql 整合1
- 安装mysql 好不容易成功了 却连不上
- 浏览器获取当前ip
- mysql 创建用户并授权数据库
- linux加载字体