Posts

Showing posts from June, 2024

GIS4102 - Module 6 - Working with Geometries

Image
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 ...

GIS4102 - Module 5 - Exploring & Manipulating Data

Image
 For this module we were tasked with creating a scrip that functioned as below: ❖ Creates a new geodatabase ❖ Copies all data from your Data folder into the new geodatabase ❖ Populates a dictionary with the names and population of every 'County Seat' city in New Mexico We were given a template for the basic ideas on where to start writing the script. Below is the flowchart for my general process for creating the script. Ultimately, the script was able to run. There were some issues with populating the dictionary but was eventually solved with the help of the error messages that occurred when the module was running. The result of that script is below.