GIS Programming Module 6: Working with Geometries
The assignment for Module 6 involved reading the geometry of a feature class and writing the vertices of each feature on the screen and to a text file. This required the use of a search cursor to get all the features. Several loops were used to iterate through all the point objects. Both the screen and file outputs contain a line with the feature ID, vertex ID, X coordinate, Y coordinate, and the name of the river feature. Below is a screen shote of the screen output that was produced by the script. Screen of text file that was written by the script. I used IDLE to write the script for the module 6 assignment. A template for the script was provided that had comments that assisted in the placement of the code needed, including the loops that were required to iterate through the feature class. The assignment provided the input rivers shapefile which is a feature class that has all single part features. The script will not work for a feature class that had multipart features since we are ...