With the introduction of the Data Access module in arcpy (30x faster search cursors), I want to know if counting features matching sql criteria is faster than the traditional MakeTableView + GetCount methodology?
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
|
I am using an example with 1 million randomly generated points inside of a filegeodatabase. Attached here. Here is some code to get us started:
And some initial results:
Imagine larger, more complex datasets. The SearchCursor will indefinitely crawl. I am not at all dissatisfied with the results, however, the DataAccess module is being used extensively in our GIS development circle. I am looking to rebuild some of our function definitions with this module as it is more flexible than a MakeTableView + GetCount methodology. |
|||
|
|