Creating Some Tools (GIS4102- GIS Programming)

 With the second to last module, we were tasked in creating a script tool from an existing script and then modifying it.

With the existing script examined and functioning properly, the next step was to create a custom toolbox in ArcMap. From here, a new script tool was added. Four parameters were added to the tool, which can be seen in the first image, including the input location, clip boundary features, the input features, and finally the output location. The script was then modified to replace existing filepaths with the arcpy.GetParameter() function. Also, a str() function was added to the output folder variable. Finally, the print messages were                            replaced with AddMessage() statements.                              The final result can be seen in the second                            image.



Comments