#获得唯一值 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

最新文章

  1. 【JAVA网络流之浏览器与服务器模拟】
  2. python递归小疑惑
  3. Codeforces Gym 100570 E. Palindrome Query Manacher
  4. python(1) - 字符串
  5. 编写你的第一个 Django 程序 第1部分
  6. 通过百度获取IP地址对应的经纬度
  7. 第8章 Android数据存储与IO——File存储
  8. makefile死磕笔记
  9. NYOJ 623 A*B ProblemII
  10. ObjectStreamDemo
  11. cocos2d-x场景切换与过渡效果
  12. 云信推送通知 APN invalid Token
  13. VC下防止反汇编的办法(1)
  14. MySQL LIKE 子句
  15. c++学习中的疑问
  16. Eclipse Java注释模板设置简介,更改字体大小
  17. nyoj 三个水杯
  18. Spring+Netty4实现的简单通信框架
  19. python四则运算2.0
  20. ES6新用法

热门文章

  1. 【转载】salesforce 零基础开发入门学习(四)多表关联下的SOQL以及表字段Data type详解
  2. from表单中checkbox的多选,ajax转入后台,后台接受
  3. 查看mysql的bin-log日志
  4. 【leetcode】566. Reshape the Matrix
  5. MySQL无法启动问题解决Warning: World-writable config file ‘/etc/my.cnf’ is ignored
  6. Vs2017 NetCode Mvc EF Mysql 整合1
  7. 安装mysql 好不容易成功了 却连不上
  8. 浏览器获取当前ip
  9. mysql 创建用户并授权数据库
  10. linux加载字体