Skip to main content
Solved

Label Internal Angles of a Polygon

  • January 24, 2025
  • 2 replies
  • 40 views

deanhowell
Influencer
Forum|alt.badge.img+23

I have a closed polygon dataset that I need to add angle labels to the internal angle.

I just wanted to see if anyone has done a similar thing or has some advice on the best way.

I am using the “VertexAngleCalculator” transformer which gives me the results for the actual angles but need to figure out the before and after lines to the calculate the position and angle of the label so it is just offset from the vertex and angled midway between the before and after lines towards the interior of the polygon.

 

Best answer by geomancer

Take a look at the PolylineAnalyzer (FME Hub). If the polygon is constructed following the 'Right Hand Rule’ (which you can force using an Orientor) the port AngleBetweenLines provides you with the inside arcs and their angles.

The midpoint of this arc provides a logical position for your label (see the attached workspace).

 

View original
Did this help you find an answer to your question?

2 replies

geomancer
Evangelist
Forum|alt.badge.img+47
  • Evangelist
  • Best Answer
  • January 24, 2025

Take a look at the PolylineAnalyzer (FME Hub). If the polygon is constructed following the 'Right Hand Rule’ (which you can force using an Orientor) the port AngleBetweenLines provides you with the inside arcs and their angles.

The midpoint of this arc provides a logical position for your label (see the attached workspace).

 


deanhowell
Influencer
Forum|alt.badge.img+23
  • Author
  • Influencer
  • January 27, 2025

Thanks ​@geomancer you are an FME magician :)


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings