170 likes | 421 Views
PYTHON Project 4 - Geoprocessing Script An Van Delm – CE 697V – November 8, 2006. Project description. New Toolbox containing SCRIPTS: create GDB set Spatial Reference set Extent Input features, rasters and tables Site Selection Tool Field access and manipulation.
E N D
PYTHON Project 4 - Geoprocessing Script An Van Delm – CE 697V – November 8, 2006
Project description New Toolbox containing SCRIPTS: • create GDB • set Spatial Reference • set Extent • Input features, rasters and tables • Site Selection Tool • Field access and manipulation
for multiple purposes... • separate scripts • Parameters + use of interface • Developed Site Selection Tool is a often used combination of existing tools: buffer + select towards buffered zone (within, intersect,…) • Interface, Help and Comments
Creating GDB + Spatial Reference Provides defaults Check existence of path
Existence of path Checkdifferentpossibilities of set extent
Input features, tables and raster-data Error messages Existence and input of GDB
F T R writing in Geodatabase: when path exists + input
Site Selection Error messages Check existence and input of arguments
Default values for Dissolve and Selection type option, instead of warning message Create layer name for result out of input layer of selection
Add and/or Remove field Error messages Same input layer for Add or Remove
Use of Boolean expression to Add or/and Remove If nothing is checked -> error message
Conclusion • Scripts easily to adjust by adding parameters • Use of interface and possible values to select -> easier to use • Warning of non existing path to avoid difficulties later - Difficult to find errors when running in ArcGIS, when there are no errors in Python