Skip to main content

Posts

Showing posts from June, 2024

M6- Geometries

 This week was about reading geometries from a feature class with a cursor and then writing that information to a text file. This week was a mixed bag with the search cursor defeating me once again. I could not get the cursor to iterate past the first feature or read the fields in the feature class. I pulled a lot of code from the exercise and online resources, but it just would not work on my computer. I was able to create a text file, screenshot below: This flowchart shows a quick step by step on how the script should work.

M5 - Explore and Manipulate Data

 Good evening classmates, This week we tackled dictionaries, cursors, and lists. Oh my! But seriously, these are incredibly powerful tools that you'll implement frequently in your GIS solutions. I've seen them in most of the scripts I've encountered. There was a lot of material this week and I'll admit, I did struggle to keep up with it. The part of the lab that I struggled with most was updating the dictionary with values from the feature class. Beyond the two lines in the lab assignment, I couldn't find any references in the readings or exercise about populating an empty dictionary. I got as far as the below error (cannot concatenate 'str' and 'int'. I tried converting the integer field to string , but that didn't affect the error message. Even put together a try/except statement to see if anything was making it to the dictionary, but nothing was. Unfortunately, I had to stop my efforts on the lab there this week. 

M4- Modelbuilder

 Hello classmates, This week we worked with modelbuilder. I work with a similar software called FME, and these types of tools are massive timesavers. Even if they aren't a perfect adaptation when you need a full script, they really help get the syntax and structure together. Putting the script together went simple as well, using notebook to test and assemble things before putting it all together in a file. This was the first week I consciously worked through the example before starting the lab, and I definitely feel the difference in how prepared I was for the actual lab.

M3 - Debugging

 I think the lesson of the week was to carefully follow the learning materials. This week's two hour delay was caused by not remember one minute from the lecture. Debugging is incredibly useful though. Even if you can't write your own scripts, fixing others is an essential skill. It also enables you to manipulate those scripts for your own purposes. Script Screenshots: 1.) 2.) 3.)