Skip to main content

Hello all,

 

I have a polyline layer within which each feature is made up of just two segments, and of course just three node points.

I'm looking for a method to discover all polyline features that do not deviate beyond a set angle (let's say 20 degrees for arguments sake).

 

In the image below, polyline A would pass this test, but the other two examples would fail.

 

Can anyone provide some guidance?

 

Thanks in advance,

RB

 

Have you looked at the AngularityCalculator?

The closer the output is to 0, the straighter the line is.

If you need the exact angle at the middle vertex, you can use the VertexAngleCalculator from the FME Hub, followed by a MeasureExtractor:


Have you looked at the AngularityCalculator?

The closer the output is to 0, the straighter the line is.

If you need the exact angle at the middle vertex, you can use the VertexAngleCalculator from the FME Hub, followed by a MeasureExtractor:

Thanks David, the VertexAngleCalculater > MeasureExtractor solution is exactly what i'm looking for


Reply