I want to identify the places where the same line have two different elevations , inserting the point When a elevation pass to another elevation on the same line .
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.
If the line is 3D line (i.e. every vertex has elevation as its z-coordinate), this procedure could be a solution.
1. Create middle points between two adjacent vertices having different elevation.
(1) Decompose the line into individual line segments by the Chopper (Mode: By Vertex
Maximum Vertices: 2).
(2) Extract elevations (z-coordinate) of start and end nodes of each line segment.
CoordinateExtractor1 (Index: 0, Z Attribute: _z0)
CoordinateExtractor2 (Index: 1, Z Attribute: _z1)
(3) Select line segments whose "_z0" is not equal to "_z1" with the Tester.
(4) Transform the selected line segments into their middle points with the CenterPointReplacer. The points represent locations in which elevation is changing on the original line.
2. Overlay the middle points and the original line.
Add a PointOnLineOverlayes; send the resulting points to the Point port; send the original line to the Line port.
The line will be split at the points. You can then re-connect the split lines using the LineJoiner.
The resulting line will be the required line, to which the elevation changing points have been inserted.
Make a list (grouped by line ID) of the points grouped by X AND Y coordinates. Count listelements. Check duplicate z value's (using duplicateremover or histogrammer)