Wednesday, July 19, 2017
GIS Programming (GIS5103): Module 8
In this week's module, we had to create a .txt file and using Python script to write into the file. The information that was being written into the file was the point data for all vertices. Each point had to have the Feature OID, Vertex ID, X coordinate, Y coordinate, and the name of the river feature. Writing this script was another challenging one to work on. I had one line of code misplaced in the for loop which allow wrote one line of information in the .txt file. The line of code I had to move was the "output = open("rivers_TScranton.txt","w")". I moved this line of code outside of the for loop and the script worked like a charm.
Labels:
GIS Programming,
GIS5103
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment