Continuous identity for connected line segments

376
2
Jump to solution
10-23-2012 07:32 AM
Highlighted
New Contributor II
I have converted a raster to polyline feature. I want identity of the line segments should be continuous as their connection but in my case it is different. As we can see in the figure 1. The selected segments are ids 156 and 157. Is there any way to rearrange the id or assign new field, so id 157 should be connected with 156 as figure 2?
Thanks in advance.

[ATTACH=CONFIG]18646[/ATTACH](figure 1)                      [ATTACH=CONFIG]18647[/ATTACH](figure 2)
0 Kudos
1 Solution

Accepted Solutions
Highlighted
by Anonymous User
Not applicable
Original User: ddahal

Dan Thanks.
Your solution seems workable but I already used different approach. I created another raster 'B' with id values and combined with my raster 'A' and converted to the line. Later I joined the tables in the line from Raster 'B' so I was able to have the result as I needed.

View solution in original post

0 Kudos
2 Replies
Highlighted
by
Regular Contributor
Try this (if you have an arcinfo license):
1.  Run Feature Vertices To Points tool (Data Management toolbox - Features toolset) uisng the BOTH_ENDS option to get endpoints of all lines.
2.  Run Unsplit Lines tool (in the same toolset) to merge lines at pseudo nodes (where only two lines connect).
3.  Run Split Line At Points (in the same toolset) to break the merged lines at the endpoints; the resulting lines should be the same as the original lines, hopefully in continuous order.
4.  Run Spatial Join (Analysis toolbox - Overlay toolset) with SHARE_A_LINE_SEGMENT_WITH option to join the split lines with the original lines to get the attributes through Field Map.

Does that work?
0 Kudos
Highlighted
by Anonymous User
Not applicable
Original User: ddahal

Dan Thanks.
Your solution seems workable but I already used different approach. I created another raster 'B' with id values and combined with my raster 'A' and converted to the line. Later I joined the tables in the line from Raster 'B' so I was able to have the result as I needed.

View solution in original post

0 Kudos