Monday, June 23, 2025

GIS5103: Module 6 - Geometries

 

rivers_970585283.txt file screenshot

  For this lab, we were tasked with creating a Python script that extracts all vertex coordinates from each feature in a shapefile and then writes that data to a text file. The first challenging part of the script was using and writing the search cursor. It took me a while to correctly do the nested loop and perform the search cursor. Using the getpart method took a while to understand, as well as writing it all to the .txt file. This lab helped reinforce my understanding of using cursors for spatial data and different geometry parts. I also learned more about the differences between features, arrays (parts of shapes), and points (vertices). Overall, I think this lab was extremely useful. These learning outcomes will be useful in the future for GIS data management and GIS Scripting.

No comments:

Post a Comment

GIS6005: Lab 3 - Terrain Visualization

  For this map i chose a design that focused on clarity, hierarchy, and visual balance. Base maps, along with thematic layers on top, ensure...