Saturday, July 9, 2016

Module 8 Geometries

Pseudocode:

#Import all modules, classes, enable overwrite output setting and set workspace, import file input,
START
set file output path
Set Variable for rivers.shp
Set Variable for text fie output rivers_RHamaty.txt
Create Search Cursor (.shp variable, OID@, SHAPE@, NAME)
Print “Search Cursor created and gathering information and creating results in text file”
      Create for loop for row in cursor
      Set vertexid equal to 0
      Create for loop for point in row 1; getPart(0)
            Output to text file (row 0 vertex id  x,y coordinate, row 2) “\n”
Close output file
Print “Text file created Successfully”
Delete Row
Delete Cursor

END



No comments:

Post a Comment