GIS 5103 Module 6 - Working with Geometeries
For module 6, we learned how to work with search cursors to pull geometric information from a shapefile. This required the creation of nested for loops, however this wasn't without issues due to the instruction to close the file and cursor. This required moving on from for loops to using a try/ finally construction rather than the code as demonstrated in the textbook which used a with along with the nested for loops, the with architecture automatically closes the cursor & file when all the for loop criteria have been met.
Overall, this week's exercise seemed easier than that of the previous week, perhaps because I was already familiar with the tuple call which gave me some difficulty in module 5.
Comments
Post a Comment