Python
Python is an interpreted, interactive, object-oriented programming language (Python). Using Python with in ArcMap is a great way to automate geoprocessing. Automating geoprocessing allows me to process data more efficiently, and help reduce the number of user errors. ArcMap has a built in Python script box, however we will be using PyScripter to write our scripts. PyScripter is more user friendly than ArcMap, and has additional built in features which make it good for beginning script writer.Class Objective
The goal of this section is to be exposed to the very basics of script writing, and the use of Python within ArcMap. We will be using Python to automate a process which will be run across multiple feature classes or raster images.
Python Script #1
The purpose of the first Python script is to prepare the 3 raster images acquired from the first part of exercise 5 and place them in to the Geodatabase. To prepare the images I had to project them in to the proper projection, and clip (extract by mask) the image to the Trempealeau County boundary. Following those step I moved the projected, and clipped files into the Geodatabase I had created to house all of my data.
Python Script #2
The second python script was written to select all of the active mines within Wisconsin which were not attached or within 1.5 Kilometers of a railroad. The purpose was to select all of the mines which use trucks to transport materials to and from the mines. The next step will have us running network analysis on the mines without direct access to railroads.
Python Script #3
The purpose of this third and final Python Script is to take raster data and create a weighted index model. I was given the decision of which feature class to weight and instructed to multiply the value by 1.5. The final step was to add all of the feature classes up to achieve a weighted index model.
No comments:
Post a Comment