Python, .NET, C++, GIS, and Computer Mysticism
from arcpy import env
env.workspace = arcpy.GetParameterAsText(0) # workspace parameter
fcs = arcpy.ListFeatureClasses()
for fc in fcs:
Typically, I'd design the script to pull in all the feature layers in a list, then run through those. I noticed you pull everything in from the workspace and run through it in your loop instead. I never tried that before. Nice tip!
Hm, isnt it exactly what is happening? Making list fcs, "for-looping" with building spatial index.First visit to this blog, great resource
Post a Comment