Record Set and Feature Set properties


The Describe function returns the following properties for instances of the RecordSet and FeatureSet objects. The Table and Dataset property groups are also supported by both. In addition, Feature Set supports the Feature Class property group. Many of these properties will be empty unless the RecordSet or FeatureSet has been populated by calling its load method.

For a RecordSet object, the Describe dataType property returns a value of "RecordSet".

For a FeatureSet object, the Describe dataType property returns a value of "FeatureSet".

A REST client (such as a web application that uses a geoprocessing service) uses JSON streams to exchange data with a Service End point. You can use the json or pjson property for generating test input for a service or to examine the JSON representation of features and tables that are used by an ArcGIS REST Service.

Remarque :

For typical ArcPy use, passing a table or feature class as an argument to a service is faster than passing the JSON string representation of the same table or feature class.


PropriétéExplicationType de données
(Lecture seule)

A JSON string representing the table or feature class that underlies the arcpy.RecordSet or arcpy.FeatureSet.

(Lecture seule)

Pretty JSON. A JSON string formatted to be easily readable. This string is a little larger because it includes extra newline and whitespace characters.


Exemple de code

Feature set properties example

The following stand-alone script loads a feature class into an arcpy.FeatureSet, then prints the pjson string:

import arcpy

# Describe a populated arcpy.FeatureSet
fSet = arcpy.FeatureSet()
desc = arcpy.Describe(fSet)

# print a JSON representation