GIS Programming- Working with geometery

 This week we learned how to work with geometries. Our assignment asked us to create a new .txt file and populate it with data from a shapefile. We were to include the object ID, the X and Y coordinates, and its name. I used a search cursor and nested for loop to accomplish this task. The trickiest part was making the .getPart() function to work. I kept receiving errors stating it could not be retrieved. I was able to solve this issue by moving the fields around in the search cursor's tuple.  

I have included the script's output and flowchart below.




Comments

Popular posts from this blog

GIS Programming- Exploring and Manipulating Data

Spatial Data Quality Standards

A little bit about me..