Connect lines at crossings

Print Previous page Top page Next page

After a vectoring the roads become broken off on crossroads. For connecting the regions belonging to one road, their connection in places of crossings is carried out.

 

_engbm422

 

For this purpose it is necessary to specify tolerances for connection of lines pieces.

 

_engbm423

 

The algorithm first calculates a direction of the ends of pieces, and then connects pieces, if the angle and distance between the ends of pieces is less than the specified tolerance.

Due to the fact that lines on crossroads are shifted toward adjacent road, it is necessary to cut off their edges at a merge.

The length of a cut line is defined by parameter «Cut ends of lines».

 

_engbm424

After connection of lines on crossings the network of major thoroughfares is defined.