Assignments Based on NR 533 Topics

NR 533 - Application Issues in Geographic Information Systems
Python and Geoprocessing

Python is an general purpose programming language designed around simplistic syntax and ease of use and implementation. Python code does not have to be compiled and acts in both a procedural and object-oriented manner. ESRI provides purpose built geoprocessing libraries for Python to facilitate the processing of standard ESRI format data.

NR 533 required a number of assignement the provided an introduction to and instruction on Python.

Example Assignments (click file name to view the source code)

currency.py
Converts US dollars to Euros and Euros to US dollars and prints the results

grid.py
Take a 2-D array and calculate its stats like size, sum of values, average, min and max value, and the range of values. Additionally, the script will display the values for a selected row, selected column and finally a selected cell.

fields.py
Uses nested looping to print the fields of each shapefile in the current directory

aggregate_loop.py
Uses looping to aggregate polygons 10 times with 10 different aggregation distances: 100 meters, 200 meters, 300 meters and so on up to 1000 meters.

temperature.py
Converts Celsius temperature to Fahrenheit and Fahrenheit to Celsius and prints the results

buffer_loop.py
Performs buffering on every shapefile in the directory where it is placed

clip.py
Clips each shapefile in the directory on one of the files in the directory