Included below are some of the python scripts that I have worked on that included geoprocessing. Each of these scripts is designed to work with ESRI ArcGIS tools.
Aggregate.py This is a simple script that was created by exporting a model from Arcmap. It takes a shapefile and performs uses the aggregate polygons tool.
Multi_Clip.py This script uses looping to clip every shapefile in a directory on one of the files in that directory. The clipped shapefiles are placed in a subdirectory.\
Fields.py This script uses nested looping to print the fields of each shapefile in a directory.
Cursor.py This script uses the SearchCursor and UpdateCursor functions to find and change values within a shapefile.
Walk.py This script uses the os.walk function to list all feature classes within a directory and related subdirectories. |