Quantcast
Channel: Forums - Geoprocessing
Viewing all articles
Browse latest Browse all 1751

How to spatially sort lines

$
0
0
Hi all,

I have a line shapefile and I split the line into multiple line segments using Split Line At Vertices. The problem I have is that after split the line, the first feature (FID = 0) is at the middle of the whole line, highlighted as following.
Attachment 30355

How can I spatially sort the line features so that the starting feature is the very first feature in attribute table, and the ending feature is the last feature in the attribute table, and the rest follows the direction of the line?

I have tried the SORT tool, it didn't seem to work for me. The order changed, but the first feature still did not start at the starting point of the line.

Thank you very much!
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG‎
Views:	N/A
Size:	7.3 KB
ID:	30355  

Viewing all articles
Browse latest Browse all 1751