Wednesday, June 29, 2016

Programming: Module 7

This week's lab covered checking for data, and working with lists and dictionaries.  Another large component  of the lab involved Search Cursors, Update Cursors, and Insert Cursors.  The end result of the lab took data from a shapefile, with specific criteria and updated it in a dictionary.

Below are the results of the scripts.  The results show each step and if the process was complete.  The dictionary is over the cities that have Features of county seat.  By using the update tool, I updated the dictionary with keys and values.  The keys were the names of the cities and the values were the population from 2000.



Figuring out how to have the dictionary updated with the keys and values was the most challenging part.  I was not quite sure how to manipulate the Update Cursor so it would put the city name and the population.  After seeing an example seeing how each column was iterated as a row, I was able to finish  the script.


No comments:

Post a Comment