Hi, what I am trying to do is join/merge/dissolve a line segment (part of one line feature class) to its closest shortest line (within the same feature)
Do you mean separate lines in one record, or auto matching between two closest lines?
dissolve and unsplit line offer nothing? how many features do you have to do and how many times do you have to do this? seems like a bit of overkill to try to develop a model for this unless it is needed because of some issue with your incoming data source
auto matching between two lines. Basically imagine there are 3 line segments in a row (10m, 5m & 15m) I want the 5m segment to dissolve into the 10m segment.
Can't use unsplit line because of licence level. (see above comment which describes what I want to do). I have to do this for around 1000 line segments.
solve it with topology
Remind me how that can be done?
Just a few points of clarification:
- do the "closest" lines have to be distance = 0?
- does every line segment need to be merged with one other line segment, or will some remain un-merged?
- once a line segment is merged, does it become a candidate for other line segments to merge onto?
- can you describe the steps (i.e. the algorithm) that will produce the results you're after?
- your example of three segments can be solved very easily, but what about if you had 4 segments (10,5,5,15)? I guess if you start at the beginning you would be left with two segments (15,20). But, what if the first segment you considered happened to be in the second position (5). Then, you'd be left with three segments (10,10,15). Basically, it will depend greatly on the order in which you consider the segments.
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.