Skip to main content
Question

line order on clockwise orientation

  • December 11, 2019
  • 5 replies
  • 51 views

alc33
Contributor
Forum|alt.badge.img+11
  • Contributor
  • 54 replies

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!

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

Forum|alt.badge.img
  • 104 replies
  • December 11, 2019

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.

bwn
Evangelist
Forum|alt.badge.img+26
  • Evangelist
  • 562 replies
  • December 11, 2019

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


takashi
Celebrity
  • 7843 replies
  • December 11, 2019

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?


Forum|alt.badge.img
  • 104 replies
  • December 12, 2019

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..? ;-)


jdh
Contributor
Forum|alt.badge.img+37
  • Contributor
  • 2002 replies
  • December 12, 2019

It may be overkill, but I tend to use the TopologyBuilder, the nodeAngle list gives the lines in order from the positive x axis.