RecordSet (arcpy)
摘要
RecordSet 对象是表的轻量级表示。它们是一种既包含方案又包含数据的特殊数据元素。RecordSet 对象也表示通过服务器发送和接收表的方式。
讨论
 注:
注:如果要将某个表加载到新的 RecordSet,并使用可对类似计算字段的输入或类似 UpdateCursor 的 arcpy 函数进行修改的地理处理工具来修改 RecordSet,那么原始要素类也将被修改。
语法
 RecordSet  ({table})
| 参数 | 说明 | 数据类型 | 
| table | Table to be loaded into the RecordSet object. | String | 
属性
| 属性 | 说明 | 数据类型 | 
| JSON (只读) | 返回一个字符串形式的几何 JSON 制图表达。  提示: 通过 Python 的 json.loads 函数,返回的字符串可转换至字典。 | String | 
方法概述
| 方法 | 说明 | 
| load (table_path) | Import from a table. | 
| save (table_path) | Export to a table. | 
方法
load (table_path)
| 参数 | 说明 | 数据类型 | 
| table_path | The table to be imported. | String | 
save (table_path)
| 参数 | 说明 | 数据类型 | 
| table_path | The output table to be created. | String | 
代码实例
RecordSet 示例
导入服务器工具箱;从服务器工具的指定参数获取记录集。
import arcpy
# Add a custom server toolbox
arcpy.ImportToolbox("http://myserver/arcgis/services;Geocode")
# Get recordset from server tool's first parameter to use as schema
in_recordset = arcpy.GetParameterValue("GeocodeAddress", 0)
相关主题
5/10/2014