set=1 lowRange=1 for highRange in range(100,50001,100): set=set+1 if set % 2 == 0: print "From "+str(lowRange)+" To "+str(highRange) lowRange=lowRange+100
InputFC_var = ...full path to the FC... outputLyr_var = "outputLyr" rangeList = [ [1, 100], [101, 200], [201, 300]] for r in rangeList: whereClause = ' "FID" >= r[0] AND "FID" <= r[1] ' arcpy.MakeFeatureLayer_management(InputFC_var, outputLyr_var, whereClause) ...other stuff you want to do...
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.