Hi!
I have lines connected to a feature. I would like to give a number to my lines on clockwise orientation in relation to this feature.
Do you have an idea?
Thanks!
Hi!
I have lines connected to a feature. I would like to give a number to my lines on clockwise orientation in relation to this feature.
Do you have an idea?
Thanks!
I'm probably oversimplifying this but anyway. :-)
1. Calculate the angle of the lines.
2. Use a Sorter to sort on angle.
3. Use a Counter to give the lines their number.
I'm probably oversimplifying this but anyway. :-)
1. Calculate the angle of the lines.
2. Use a Sorter to sort on angle.
3. Use a Counter to give the lines their number.
Agree, only extra thing that will help is use custom hub transformer HorizontalAngleCalculator to get an angle attribute for Step 1
It might be hard to define the order generally unless you add some conditions. For example, how do you define the order of the lines in this case?
It might be hard to define the order generally unless you add some conditions. For example, how do you define the order of the lines in this case?
I'll answer that question at midnight. Is that 0.00 AM or 12.00 PM by the way..? ;-)
It may be overkill, but I tend to use the TopologyBuilder, the nodeAngle list gives the lines in order from the positive x axis.