Skip to main content
Question

Calculate top/bottom

  • March 8, 2018
  • 2 replies
  • 14 views

sigtill
Supporter
Forum|alt.badge.img+25

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?

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.

2 replies

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • 2252 replies
  • 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
Celebrity
  • 7843 replies
  • 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".