Skip to main content
Solved

Label Internal Angles of a Polygon

  • Jan 24, 2025 5:02 AM UTC
  • 2 replies
  • 157 views

deanhowell
Influencer
Forum|alt.badge.img+24

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

2 replies

geomancer
Evangelist
Forum|alt.badge.img+70
  • Evangelist
  • Best Answer
  • Jan 24, 2025 9:21 AM UTC

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+24
  • Author
  • Influencer
  • Jan 27, 2025 12:07 AM UTC

Thanks ​@geomancer you are an FME magician :)