Select to view content in your preferred language

Merging Multiple Line Segments Within Spatial Constraints

1093
4
02-15-2022 12:14 PM
AarushiJhatro
Emerging Contributor

Hello Everyone, 

I have a line shapefile that I created using supervised image classification, with the purpose of delineating vine rows in a vineyard. The classification worked to an extent, and gave me multiple line segments per vine row (as seen in the image below).

AarushiJhatro_0-1644955301073.png

I am now stuck on how to connect these segments to other segments in a row. Is it possible to automate this and not have to manually connect all the lines? I tried using topology, and 'no dangles' rule, and tried to snap a line end point to another within a given distance. Unfortunately, often this results in a line segment snapping to a line segment in the next row instead of snapping to a segment in the same row.

Would really appreciate any solutions/guidance on how to work around this. 

Thank you!

Best, 

Aarushi 

 

 

 

0 Kudos
4 Replies
DanPatterson
MVP Esteemed Contributor

You could give

Extend Line (Editing)—ArcGIS Pro | Documentation

a try... on a copy of your data


... sort of retired...
AarushiJhatro
Emerging Contributor

Thank you Dan! This certainly works in connecting the segments. While the extended and connected segments don't make straight lines, using Extend Line has brought me one step closer to having vineyard rows representing lines. 

0 Kudos
DanPatterson
MVP Esteemed Contributor

glad it is working... and who says vines need to be planted perfectly straight.... but if you do

How Simplify Line and Simplify Polygon work—ArcGIS Pro | Documentation

might go a ways to smooth things out


... sort of retired...
AarushiJhatro
Emerging Contributor

Thank you...for helping me connect the dots! 

0 Kudos