import arcpy import os ws = r"C:\your_township_dir" arcpy.env.workspace = ws outdir = r"C:\outdir" soils_fc = "path_to_soils_fc" soils_temp = r"in_memory\soils_temp" arcpy.MakeFeatureLayer_management(soils_fc,soils_temp) twp_temp = r"in_memory\twp_temp" fc_list = arcpy.ListFeatureClasses() unique = 1 for fc in fc_list: arcpy.MakeFeatureLayer_management(fc,twp_temp) arcpy.Clip_analysis(soils_temp,twp_temp,os.path.join(outdir,fc+unique)) unique += 1
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.