Mapping Toolbox    

Merging Line Segments

A common operation on sets of line segments is the merging of segments that have matching ends. The polymerge command takes latitude and longitude vectors and compares the endpoints of the segments to see which have endpoints that match exactly or to some tolerance. The matching segments are then combined until no more matching segments are found:


  Extracting Polygon or Line Segments Creating Vector Data