![]() Read the script so that you have understand clearly the meaning of each line. Output = os.path.join(output_folder, shp "_clipped.shp")Īrcpy.Clip_analysis(shp, clip_features, output) ![]() ![]() Output_folder = r"C:\path\to\folder\with\clipped\datasets" Input_folder = r"C:\path\to\folder\with\input\data"Ĭlip_features = r"C:\path\to\clip\polygon\dataset.shp" The relevant script can look like this: import arcpy, os.path We'll create a tool with a simple example of the BatchClip tool you created in Lesson 10 (see Task X). You already know from Lesson 2 how to create user interfaces to models from Model Builder. As a result, our tool will look and behave similar to other built-in tools in ArcToolbox. In this chapter, we'll create a user interface for a script that uses ArcGIS tools.
0 Comments
Leave a Reply. |