arcpy学习随记(八)--- SelectLayerByAttribute函数的选择类型参数选项

SelectLayerByAttribute函数是一个按属性选择的要素的常用函数。从要素或表中选择符合查询条件的记录。通过选择类型参数的不同获得想要的数据集。

 NEW_SELECTION:默认选择类型,用于创建一个新的选择集(生成的选择内容将替换任何现有的选择内容)

ADD_TO_SELECTION:基于查询从当前选择集添加到当前的记录中(当存在一个选择内容时,会将生成的选择内容添加到现有选择内容中。如果不存在选择内容,该选项的作用同NEW_SELECTION选项)

REMOVE_FROM_SELECTION:基于查询从当前选择集中移除所选的记录。(将生成的选择内容从现有选择内容中移除。如果不存在选择内容,则该选项不起作用。)

SUBSET_SELECTION(两个选择的公共内容选择,交集):结合现有选择集,选择两者共同记录(选取生成的选择内容与现有选择内容交集

SWITCH_SELECTION(反向选择):切换选择内容,选择当前没有被选择的记录(将所选的所有记录从选择内容中移除,将未选取的所有记录添加到选择内容中,当指定该选项时将忽略表达式)

CLEAR_SELECTION:清除选择集的当前所有记录(清除或移除任何选择内容。当指定该选项时将忽略表达式)

  • 10
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
12: Arc GIS API for Pythonb'Chapter 12: Arc GIS API for Python'b'Introduction to the Arc GIS API for Python'b'Creating a Jupyter Notebook'b'Starting the Arc GIS API for Python'b'Adding an item to a web map'b'Importing a CSV with pandas'b'Summary'6: The arcpy.mapping Moduleb'Chapter 6: The arcpy.mapping Module'b'Using Arc Py with map documents \xc3\x82\xc2\xa0'b'Summary'7: Advanced Analysis Topicsb'Chapter 7: Advanced Analysis Topics'b'Using Network Analyst'b'The Network Analyst module'b'Accessing the Spatial Analyst extension'b'Summary'8: Introduction to Arc GIS Onlineb'Chapter 8: Introduction to Arc GIS Online'b'Arc GIS Online'b'Summary'9: Arc Py and Arc GIS Onlineb'Chapter 9: Arc Py and Arc GIS Online'b'Arc GIS Online REST services'b'URL parameters'b'Feature sets'b'Arc GIS Online tokens'b'Putting it all together'b'Summary'10: Arc REST Python Packageb'Chapter 10: Arc REST Python Package'b'Introducing the Arc REST module'b'Arc GIS Online administration'b'Querying hosted feature services'b'Summary'11: Arc Py and Arc GIS Prob'Chapter 11: Arc Py and Arc GIS Pro'b'Introducing\xc3\x82\xc2\xa0Arc GIS Pro'b'Installing and configuring Arc GIS Pro'b'The Arc GIS Pro Python window'b'Python 2.7 and Python 3.5 with Arc Pro'b'Conda and Arc GIS Pro'b'Reviewing Conda basics'b'Summary'1: Introduction to Python for Arc GISb'Chapter 1: Introduction to Python for Arc GIS'b'Python as a programming language'b'The basics of Python programming'b'Data types'b'Other important concepts'b'Important Python modules'b'How Python executes a script'b'Integrated Development Environments (IDEs)'b'Python folder structure'b'Summary'2: Creating the First Python Scriptb'Chapter 2: Creating the First Python Script'b'Prerequisites'b'Model Builder'b'Exporting the model and adjusting the script'b'String manipulation'b'The Arc Py tools'b'The final script'b'Summary'3: Arc Py Cursors - Search, Insert, and Updateb'Chapter 3: Arc Py Cursors - Search, Insert, and Update'b'Pythonfunctions\xc3\x82\xc2\xa0\xc3\xa2\xc

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值