GIS 5103 LAB 5

 

Objectives for this lab included using Python script to create a new TXT file, and write data to the TXT file to include the names of the rivers in Hawaii, along with their X,Y vertices and OID. Additionally, another requirement was creating psuedocode. The method of doing so was to first set the environment, and open a text file. By opening a text file, the file is also created if it has not yet been created. A search cursor is created to parse through the feature classes fields including the object ID (OID) number, shape and name. Afterwards, a vertex ID is created and assigned to the OID. Finally, the text is written using the f.(write) which references the txt file created in the beginning of the script. The txt is checked for accuracy, and the rows and cursor are deleted, and the text file is closed. 

My experience with this script was extremely challenging. This was by far the most difficult module in experience, however, learning how to create and manipulate text files with python script is a great skill to know, and I can easily see the importance. 

Comments

Popular posts from this blog

About Me

GIS 6005 Lab 1

GIS 6004 LAB 2