Automating Line Creation with Multiple Points

المشرف العام

Administrator
طاقم الإدارة
I have a feature class that has over 1500 points in it. I then need to create line segments from these points based on an ID number. For example points 1-6 have the ID 1, points 7-12 ID 2 etc. Each point has an easting, northing and elevation and PointID that I want to keep as attributes in the polyline file. Here is how my point data is structured



And I want my output to look like this, although continues with the rest of the point information associated with each line.



I want to be able to automate this with python, but am unsure about how to structure the code because there can be anywhere from 3-6 points associated with each ID that need to make a line. I currently do this manually and would love to be able to create the code. Any help is greatly appreciated! Thank you!



أكثر...
 
أعلى