Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- arcpy.MakeFeatureLayer_management(tempGrid, "temp_lyr")
- arcpy.SelectLayerByLocation_management("temp_lyr", "INTERSECT", "master_lyr")
- countOutFC=float(arcpy.GetCount_management("temp_lyr").getOutput(0))
- print "Cell size: "+str(cellSize)+" Count: "+str(countOutFC)
- if countOutFC>x:
- print "Overshot..."
- cellSize=prevCellSize
- inc=inc/2.0
- else:
- prevCellSize=cellSize
- cellSize-=inc
- countOutFC=float(arcpy.GetCount_management("temp_lyr").getOutput(0))
- print "Cell size: "+str(simpCellSize)+" Count: "+str(countOutFC)
- if countOutFC==x:
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement