Timeline for Creating shp from txt files using ArcPy?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 1, 2015 at 17:03 | comment | added | Konstantin | so my data should be like that: [('60.9090909091', ('347172.2', '4269952.7')), ('85.7334909091', ('337172.8', '4278952.4')), ('123.909673091', ('344572.3', '4547952.2')), ('456.467809091', ('347532.8', '8777952.8'))] | |
Jun 1, 2015 at 11:24 | comment | added | Aaron♦ | @por.bet I suspect that you need make sure your txt file does not contain the words "Point" and "END" at the beginning and end of the txt file. For this example, I copied your test data to a txt file (without "Point" and "END") and used that as the input data during testing. | |
Jun 1, 2015 at 2:58 | comment | added | PolyGeo♦ | Please be aware that @Aaron has offered an approach, and that GIS SE uses a focussed Q&A format i.e. it does not offer a code writing/debugging service. | |
Jun 1, 2015 at 2:54 | comment | added | PolyGeo♦ | Ignore my previous comment, for this to work you need to have your input data in the exact format that @Aaron specifies in the comment near the beginning of his code. If your format is different then the code will need to be modified to work with it. | |
Jun 1, 2015 at 2:49 | comment | added | Konstantin | yes i know, i am testing it for points but it doen't work amd returns an error: Runtime error Traceback (most recent call last): File "<string>", line 16, in <module> IndexError: list index out of range | |
Jun 1, 2015 at 2:38 | comment | added | Konstantin | i made my line from this Point 0 347172.2 4269952.7 60.9090909091 END to this [('60.9090909091', ('347172.5', '4277952.5')) BUT i get a parsing error at line 16: Runtime error Traceback (most recent call last): File "<string>", line 16, in <module> IndexError: list index out of range | |
May 31, 2015 at 22:44 | history | answered | Aaron♦ | CC BY-SA 3.0 |