ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

RecordSet/FeatureSet properties

  • Summary
  • Properties
  • Code sample

Summary

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

A RecordSet returns a dataType of "RecordSet".

A FeatureSet returns a dataType 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. For an example of this, see Using a service in Python scripts.

Note:

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.

Properties

PropertyExplanationData Type
json
(Read Only)

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

String
pjson
(Read Only)

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

String

Code sample

FeatureSet properties example (stand-alone script)

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()
fSet.load("C:\data\moad.gdb\Water_Bodies")
desc = arcpy.Describe(fSet)

# print a JSON representation
print (desc.pjson)

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2019 Esri. | Privacy | Legal