Specify the number of features returned in cursor

3472
1
Jump to solution
05-22-2015 05:36 AM
StasyGrayn
New Contributor II

Hi all,

I have a FeatureLayer with many features.

I want to process all features using Search Cursor, but it returns me only 300 records.

Can anyone suggest, where can this limitation can be changed?

my code:

path = "some_path_to_file.sde/my_layer"

cursor = arcpy.SearchCursor(path)

for row in cursor:

     //process row

del cursor

Thanks,

Stasy.

0 Kudos
1 Solution

Accepted Solutions
StasyGrayn
New Contributor II

Found how to overcome this issue. For the people, who will face the same problem: I used arcpy.da.SearchCursor instead of arcpy.SearchCursor and it worked.

View solution in original post

0 Kudos
1 Reply
StasyGrayn
New Contributor II

Found how to overcome this issue. For the people, who will face the same problem: I used arcpy.da.SearchCursor instead of arcpy.SearchCursor and it worked.

0 Kudos