Récapitulatif
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.
Discussion
Syntaxe
RecordSet ({table})
Paramètre | Explication | Type de données |
table | Table to be loaded into the RecordSet object. | String |
Propriétés
Propriété | Explication | Type de données |
JSON (Lecture seule) | Returns an Esri JSON representation of the geometry as a string. | String |
Vue d'ensemble des méthodes
Méthode | Explication |
load (table_path) | Import from a table. |
save (table_path) | Export to a table. |
Méthodes
load (table_path)
Paramètre | Explication | Type de données |
table_path | The table to be imported. | String |
save (table_path)
Paramètre | Explication | Type de données |
table_path | The output table to be created. | String |
Exemple de code
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)