GIS4102 - Module 6 - Working with Geometries
For this module it was tasked of us to create a TXT file based on data given to us and write to it the coordinates and object IDs for vertices in a shapefile. We were given a script template to help guide us through the process. Essentially the process was to import the modules needed and enable overwriteoutput, create a seach cursor for the OID field, the SHAPE geometry object, and the NAME field. Create a TXT file, write data to said file and create a for loop for each feature in the shapefile. We then created another loop for each point in array and used the getPart() method to access the points/vertices in each array. Below is a pseudocode of the process in a more specific way. Start # Step 1: Setup Import necessary modules Enable overwrite output ...