Skip to main content
Question

line order on clockwise orientation

  • Dec 11, 2019 4:16 PM UTC
  • 5 replies
  • 111 views

alc33
Contributor
Forum|alt.badge.img+14

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
  • Dec 11, 2019 7:54 PM UTC

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
  • Dec 11, 2019 11:30 PM UTC

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
  • Dec 11, 2019 11:39 PM UTC

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
  • Dec 12, 2019 8:07 AM UTC

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+41
  • Contributor
  • Dec 12, 2019 9:52 PM UTC

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