GIS Programming Module 4
This week's covered exploring and manipulating data using Python.
The first part of this Module's assignment was to write a script that will create a file geodatabase and populate the geodatabase with data that was provided.
Once the file geodatabase was created and populated we used that for the second part of our assignment. Using a shapefile in the database we had to use a search cursor to filter out cities in New Mexico which are County Seats. The search cursor produced a list of County Seats along with the attribute feature type and the individual cities population.
Using the same data as was printed from the search cursor we created a second search cursor which populated an empty dictionary that we created. Once dictionary keys and values were assigned the dictionary had to be printed out.
There were lots of steps and lots of printing going on in this script so we had to make sure and use arcpy messages and print statement that we created to delineate and explain what was going on at any given time in the process.
Below is a flowchart outlining the script that I created for this assignment.
No comments:
Post a Comment