nvwildfire
Technical User
I know this is a very simple question, but being a python newbie I need some help (this is my first project trying to use python instead of VB).
I have a CSV file that is exported from a program called terrain navigator, I want to read in the data from the CSV file and then write it out as an ESRI shape file using pyshapelib. I think I've got the usage down for creating a shape file with pyshapelib but I need help getting the data in. It seems very simple to read data but I want to be able to pull specifics out of each row of data in the csv file. The first 2 columns of data (separated by commas) are coordinate pairs (x,y), I need these to create the output format.
So with that in mind can someone give me an example of how to use CSV in the standard module? I am really struggling on this one. Any information or direction would be greatly appreciated.
Thank you in advance.
kgk
I have a CSV file that is exported from a program called terrain navigator, I want to read in the data from the CSV file and then write it out as an ESRI shape file using pyshapelib. I think I've got the usage down for creating a shape file with pyshapelib but I need help getting the data in. It seems very simple to read data but I want to be able to pull specifics out of each row of data in the csv file. The first 2 columns of data (separated by commas) are coordinate pairs (x,y), I need these to create the output format.
So with that in mind can someone give me an example of how to use CSV in the standard module? I am really struggling on this one. Any information or direction would be greatly appreciated.
Thank you in advance.
kgk