Wednesday, June 4, 2025

GIS5103: Module 3 - Debug and Error Handling




The focus on try-except codes was an important lesson to learn when working with geospatial information that doesn't always process correctly or gets corrupted. The first Script did not prove to be very difficult. The first script was just fixing syntax errors in the script to make it run correctly. I figured this one out pretty quick and got to the objective. The second script incorporated the .aprx and .shapefiles. This one gave me a little trouble. I encountered a lot of errors saying the object has no attribute, and OSError. Once I connected the dots that it was a problem with the .aprx, where the file isn't being found, and the layers in the map were broken file paths, it all came together. The third Script was definitely the hardest and took a long time to complete. Figuring out where the errors went quickly using the Python shell, but getting the script to run correctly and figuring out how to execute the try-except blocks so the script would run took forever. I think overall, this was a productive assignment, and I learned a lot about the relationship between Python and geospatial information.


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