TableView 属性 (arcpy)
属性
属性 | 说明 | 数据类型 |
table (只读) |
A Describe object of the Table associated with the table view | Describe |
FIDSet (只读) |
A semicolon-delimited string of selected feature IDs (record numbers) | String |
fieldInfo (只读) |
The FieldInfo object (property set) of the table | FieldInfo |
whereClause (只读) |
The table view selection WHERE clause | String |
nameString (只读) |
The name of the table view | String |
代码实例
TableView properties example (stand-alone script)
The following stand-alone script creates an in memory TableView from a feature class. It then displays some of the properties for the TableView.
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
9/15/2013