GIS5103 Module 5: Exploring & Manipulating Data

    This week’s lab in GIS Programming focused on exploring and manipulating data. We wrote a script that created a new file geodatabase (fGDB), copied relevant data into the created fGDB, and populated a dictionary with names and populations of the County Seats within New Mexico, USA. To view the thought process in creating this script, see below flowchart:

 

Flowchart documenting process of creating requested script outcome

To view the results indicating the successful run of the script, see below screenshots:

 




    The main problem I had in this lab was finding an effective way to populate each item to the created dictionary. After several trials of code, I went back and used the Search Cursor for loop with the same parameters to only select the correct key and value. I was setting my key to ‘County Seats’ when it should have been “NAME”. After figuring that out and trying more coding that was more along the lines of what was demonstrated in the exercise for this module, the code was able to correctly populate the dictionary.

 

Comments

Popular posts from this blog

GIS5007 Orientation: About Me

GIS 5007 Module 6: Isarithmic Mapping

GIS5935 Module 2.1: Surfaces - TINs and DEMs