This week's script used a cursor object to run through all the rows of a shapefile, collecting their OID, their geometry and a NAME field. These were used to print out the data from the shapefile into a clear text file. The resulting file displayed a row for each point of each feature in the shapefile in a space delimited format. The fields in the text file were:
- Object ID number
- A vertice number, as counted up from zero for each feature
- The vertice/point's X coordinate
- The vertice/point's Y coordinate
- The NAME field

Screenshot of resulting text file
No comments:
Post a Comment