Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

How to determine number of records using arcpy.da.SearchCursor

$
0
0
Does anyone know of a quick way to return the number of records in a query constrained Search Cursor using the da module?

Code:

rows = arcpy.da.SearchCursor(someFC,someFields,someQuery)

print (len(rows))  #I'm sure this used to work with the old cursors, but doesn't work with da.SearchCursor


Viewing all articles
Browse latest Browse all 2485

Trending Articles