Export Polygon Points to csv in correct order
-
I have asked this question before but I guess its now somewhere on the bottom of the pile and I have not had a response yet
Before I abandon this idea I would like to give it one more try:I need to draw polygons (trace a scaled map) and export co-ordinates in the correct order to a csv.
I found this great plugin from TIG (Export Vertices to CSV), which works fine, except it dumps the coordinates not by following the line segment order. I am trying to read the generated point file into a python script that redraws the polygon for me... but I get quite a mess this way...Thanks in advance!
Michiel -
What is the "correct order"? How is that determined?
-
@dave r said:
What is the "correct order"? How is that determined?
Thanks very much Dave!!, I now realize that it is indeed a bit of a shady definition!
I just meant that each polygon has a begin and an end-point and the "correct" order is getting the sequential line segments in that order. So for example for a polyline consisting of 3 line segments I would get 4 co-ordinates in order that makes up the polyline:x1,y1 start line segment a
x2,y2 end line segment a, start line segment b
x3,y3 end line segment b, start line segment c
x4,y4 end line segment cI think this is the only way to rebuild a polyline if all you have are the co-ordinates.
Regards
Michiel
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement