I have a polyline feature class and a point feature class. Two lines from the polyline feature class come together (in most cases they are snapped together) where a point exists in the point feature class. Where two lines come together in this way, I need to merge those two lines. Since the amount I of data I have is pretty tremendous, I'm wondering if there's a model or a python script that will help me to accomplish this much faster than doing it by hand.
- Give all point features a unique ID
- Use Spatial Join to join the point features to the polyline features with these parameters: Target Features: [Polyline Feature Class], Join Features: [Point Feature Class], Join Operation: ONE_TO_MANY. If some line segments that you need to merge do not actually touch a point, use Match Option: CLOSEST
- Use the Dissolve tool to dissolve features in the polyline feature class created in step 2 that have the same ID into multipart features. Use the field containing the unique ID from the point feature class as the dissolve field when executing this tool.
Note that if there are small gaps between the line segments, the gaps will still physically be there in the end, but the line segments will still be part of the same multipart feature.