ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Ayuda
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plataforma de representación cartográfica para tu organización

ArcGIS Desktop

Un completo SIG profesional

ArcGIS Enterprise

SIG en tu empresa

ArcGIS Developers

Herramientas para crear aplicaciones basadas en la ubicación

ArcGIS Solutions

Plantillas de aplicaciones y mapas gratuitas para tu sector

ArcGIS Marketplace

Obtén aplicaciones y datos para tu organización.

  • Documentación
  • Soporte
Esri
  • Iniciar sesión
user
  • Mi perfil
  • Cerrar sesión

ArcMap

  • Inicio
  • Introducción
  • Cartografiar
  • Analizar
  • Administrar datos
  • Herramientas
  • Extensiones

RecordSet/FeatureSet properties

  • Resumen
  • Propiedades
  • Muestra de código

Resumen

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.

Nota:

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.

Propiedades

PropiedadExplicaciónTipo de datos
json
(Sólo lectura)

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

String
pjson
(Sólo lectura)

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

Muestra de código

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

  • Inicio
  • Documentación
  • Soporte

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

Acerca de Esri

  • Quiénes somos
  • Empleo
  • Blog de Esri
  • Conferencia de usuarios
  • Cumbre de desarrolladores
Esri
Díganos su opinión.
Copyright © 2021 Esri. | Privacidad | Legal