GIS 5103 Module 6
Brief Overview of Module 6 This module involves creating a .txt file in Python, identifying vertices in a .shp file, and transferring selected information from the .shp file into the newly created .txt file. In this flowchart a basic process is summarized for the creation of the script. 1)The input workspace environment is defined, along with the output, and the file that the data will be taken from, which was a shapefile of rivers. 2)A textfile is created next using the open() command, and is set to enable the file to allow writing. 3) A search cursor is created within the rivers shapefile to identify the object ID, the Shape, and the Name. 4) A vertex ID created unique for each vertex within the object next. This is done using a nested for loop, in which actions are performed for each row. First, the vertex ID is defined starting with 1, then the XY data is obtained using the getPart function. 5) This information is then written to the text file using the write(