Synthèse
The Describe function returns the following properties for table views. The Table property group is also supported.
For a table view, the Describe dataType property returns a value of "TableView".
Propriétés
Propriété | Explication | Type de données |
table (Lecture seule) | A Describe object of the table associated with the table view. | Describe |
FIDSet (Lecture seule) | arcpy.Describe will return a semicolon-delimited string of selected record IDs (record numbers). arcpy.da.Describe will return a list of selected record IDs. If there are no selected records, FIDSet will return a None; if there is no selection, FIDSet will return an empty list. | String |
fieldInfo (Lecture seule) | The FieldInfo object (property set) of the table. | FieldInfo |
whereClause (Lecture seule) | The table view selection where clause. | String |
nameString (Lecture seule) | The name of the table view. | String |
Exemple de code
The following stand-alone script creates an in-memory table view from a feature class. It then displays some of the properties for the table view.
import arcpy
# Create a table view from a feature class
#
arcpy.MakeTableView_management(
"C:/data/wellingham.gdb/water/water_pipes",
"pipes_view")
# Create a Describe object from the table view
#
desc = arcpy.Describe("pipes_view")
# Print some table view properties
#
print("Table View Name: " + desc.nameString)
print("Where Clause: " + desc.whereClause)
print("Table Name: " + desc.name)
Vous avez un commentaire à formuler concernant cette rubrique ?