Skip to main content

Hello all,

I am trying to join lines that have the same bearing (angle) but I am finding that the orientation of some are reversed.

I have created two attributes bearing and back-bearing and have been successful joining based on one or the other when they are oriented the same way, but am stumped how to join when the orientation is different. In the example below the two pink lines are the same (but reversed) angle)

The above shows the bearing in the first is equal to the backbearing in the second

 

 

Any assistance would be very much appreciated.

Regards

Dean

Maybe this can help,

Use an AttributeManager:

Conditional value: If BackBearing > Bearing set Bearing the value of Backbearing and BackBearing the value of Bearing.

This way you always have the same Bearing for each orientation!

 


You can normalize the values to 180. If bearing > 180, set the bearing to 360-bearing. (assuming they are already normalized to 0-360).


Maybe this can help,

Use an AttributeManager:

Conditional value: If BackBearing > Bearing set Bearing the value of Backbearing and BackBearing the value of Bearing.

This way you always have the same Bearing for each orientation!

 

Thanks @stalknecht and @jdh both worked as expected. Sometimes a fresh set of eyes is all it takes :)