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.

説明

注意注意:

If loading a table into a new RecordSet and modifying the RecordSet with a geoprocessing tool that modifies the input like Calculate Field or an arcpy function like UpdateCursor, the original feature class will also be modified.

構文

RecordSet ({table})
パラメータ説明データ タイプ
table

Table to be loaded into the RecordSet object.

String

特性

プロパティ説明データ タイプ
JSON
(読み取り専用)

Returns a JSON representation of the geometry as a string.

ヒントヒント:

The returned string can be converted to a dictionary using Python's json.loads function.

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

関連トピック

4/26/2014