Skip to main content
Question

Calculate top/bottom


sigtill
Supporter
Forum|alt.badge.img+24

I need to find the top/bottom turningpoint of a dataset - as seen on the image below. these are expressed as x,y,z and possible more attributes. Is there another way than python?

2 replies

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • March 8, 2018

Well, the direction at the turnover will flip.

You can test for that occurrence. First quadrant=> third, second to first etc.

If you chop the lines by 1 vertex they will be ordered per polyline. Maybe set an id if needed.

You can use azimuth calculator and test for quadrants at all vertices.

So you can use a attribute creator with prior and/or subsequent features to scan for the changes.

3D peaks (local maxima) require bit more work of course.

I have not tried finding local maxima by just using fme (without scripting) though.


takashi
Evangelist
  • March 9, 2018

Assuming that the curve is a polyline, this workflow finds segments that start with turning points in Y direction. If you need to find turning points in Z direction, replace all "y" in the workflow with "z".


Reply


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