Hi, I have a big csv file with points that I want to transform to lines. The Linebuilder works fine when you have attribute that controls when to build a new line. But what is the approach if I want to start a new line when the next point is far away?
Page 1 / 1
If I understood your requirement correctly, a possible way is:
- LineBuilder: Connect every point to form a single polyline.
- Chopper (Mode: By Vertex, Maximum Vertices: 2): Decompose the line into individucal segments.
- LengthCalculator (or @Length function) and Tester: Keep only segments whose lengths are shorter than a certain distance.
- LineCombiner: Combine the kept segments to form polylines separated by the spaces where there had been the discarded longer segments.
@hrinze
Calculate the distance and set an (incrementing) attribute value ('breakvalue" attribute) if it is beyond the limit you require (conditional creator in attribute creator).
Easiest way to create incrementing value that is to use adjacent feature in attribuite creator.
Then use this "breakvalue" column as breakvalue.
If I understood your requirement correctly, a possible way is:
- LineBuilder: Connect every point to form a single polyline.
- Chopper (Mode: By Vertex, Maximum Vertices: 2): Decompose the line into individucal segments.
- LengthCalculator (or @Length function) and Tester: Keep only segments whose lengths are shorter than a certain distance.
- LineCombiner: Combine the kept segments to form polylines separated by the spaces where there had been the discarded longer segments.
This is a fantastic answer, thank you!