Command Description
The Line Node Cleanup command removes duplicate nodes from a line string, corrects vertical segments, and eliminates node elevations that fall outside a specified range. It can also apply a tube filter to line strings, significantly reducing data density while preserving the overall shape.
- Click in the Linestrings selection field and then in a graphic view select the linestrings you want to clean up. Click Options for additional selection options.
- Tick the required fields:
- Convert to horizontal linestring – If the linestring contains vertical tab data then you need to convert it for this command to work. You will be prompted to use this if such data is found.
- Remove duplicate nodes – If this option is chosen you need to enter the horizontal and vertical tolerance that the command will use to search the linestring and delete nodes. First it checks the horizontal and then the vertical distance.
- Nudge vertical nodes – If this option is chosen it searches the line for vertical segments that have a horizontal change less then as entered value and if it finds one it will move the segment to give it a horizontal change of the entered value.
- Set nodes out of range to undefined elevation – If this option is chosen it searches the line for nodes outside of the specified elevation range. If a node is found to be outside the elevation range the elevation is set to undefined “?”.
- Tube Filter – If this option is chosen you need to enter a value to be used to create a tube radius. The filter starts at the first vertex “A” of the string and looks ahead to the third vertex “C”, and if the one in between “B” does not go outside the tube then it is removed.
- The Maximum node spacing option defines the largest allowable gap after filtering. It does not guarantee that nodes will be spaced at that distance. The actual result is determined by the sweep-based removal pattern used by the vertex filter and depends on the line geometry.
Understanding maximum node spacing results
The filter works in sweeps. Each sweep removes roughly every second node that lies within the tube, then the sweep repeats until nothing more can be removed. On a straight run of evenly spaced nodes the gap between survivor’s doubles with each sweep: 1 m, 2 m, 4 m, 8 m.
For example, a straight line with nodes every 1 m and a maximum node spacing of 5 m results with nodes every 4 m. The third sweep would open 8 m gaps, which is over the limit, so it stops at 4 m.
- Click Apply to apply the changes and keep the Line Node Cleanup command pane open.
Note: This command only works on Linestrings.