Is there an efficient way to extend lines to points in ArcMap?
I have a utilities dataset, where I do not want to change the original geometry, but instead add to it in order for end vertices of lines tor each to the nearby junction points.
I would not want to do this manually thousands of times. Is there a way to extend lines to points? I have tried extending the lines to themselves then snapping all within a certain tolerance, but this alters the original geometry. I have also tried integrating the lines, but again, it alters the original geometry.
After thinking a bit more, I am going to try and create points at the end vertices, then create lines from points using selected end vertices and the junctions, then I will merge the lines with the original polylines. My only concern is ensuring the attributes are appropriately merged and how to obtain an appropriate selection. I do not want to extend all lines, only certain ones. The rule is hard to put logically, but some lines used to intersect a cad feature, and others just ended near them…
Best Answer
This is what snap does:
As one can see it is not what @Stella wants
The following workflow based on this structure of original pipes table:
ADD XY data using NEAR_X and NEAR_Y fields from XY.dbf and convert them to DOUBLES.shp (no clue what ESRI did to this tool)
RESULTS:
Because connections table contains parent pipe name in field UNIQUE:
it can be derived into a new field:
Afterwards connections can be merged with PIPES and result dissolved using LID. This is no brainer to bring attributes, e.g. DIAMETER, back from PIPES table.
Dissolving however will modify geometry, because without it you task cannot be accomplished.