RecordSet (arcpy)

摘要

RecordSet objects are a lightweight representation of a table. They are a special data element that contains not only schema but also the data. The RecordSet object is also how tables are sent and received from the server.

语法

RecordSet ({table})
参数说明数据类型
table

Table to be loaded into the RecordSet object.

String

属性

属性说明数据类型
JSON
(只读)

返回一个字符串形式的几何 JSON 制图表达。

提示提示:

通过 Python 的 eval 函数,返回的字符串可转换至字典。

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 example

Import a server toolbox; get the recordset from the server tool's specified parameter.

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_RecSet = arcpy.GetParameter("GeocodeAddress", 0)

相关主题

9/15/2013