Module 6 for GIS Programming tasked us with writing a script that gathered geographic data from a river shapefile and writing the data to a TXT file. This required us to build upon what we have learned utilizing a search cursor to iterate over the river shapefile geometries, using nested loops, with the end goal being a populated TXT file containing the name, x,y, coordinates, OID, and the number of vertices for each row of the features in the rivers shapefile.
The increased complexity of this assignment was a little intimidating and I found that sticking to the template and flowchart was crucial for success. I got off track a few times and ended up making some mistakes that required me to back track. I thought that I was finished on a few occasions but found I had overlooked some crucial details. One of these was that my nested for loops were incorrect and another was that my TXT file was not being saved in my results folder.
Overall, this was a challenging module and a great finish to the course. I have certainly learned a lot in a short time period and look forward to continuing to build upon what I have learned. Below is my flowchart and a snippet from the resulting TXT file.
No comments:
Post a Comment