I have two lines that are starting from the same point (blue point). I would like to calculate the geometry of the points where the lines start to run in parallel (approx. where the green points are). How can I do it in FME ?
Page 1 / 1
Hi
I think a possible approach as in:
- Chopper (Mode: By Vertex, Maximum Vertices: 2) : Split the input lines into individual line segments.
- 2DVectorCalculator from FME Hub: Calculate x, y components (e.g. _vx, _vy) of 2D vector for each segment. The components specify the direction of each segment.
- AttributeRounder : Round the components with an appropreate precision.
- VertexRemover : Transform each segment to its first vertex point.
- NeighborFinder : Select point where there is same direction point within a certain distance (maximum distance between parallel lines).
- Group By: _vx, _vy
- Transformer Mode/Input: Candidate Only
- Number of Neibours to Fine: 1
- Maximum Distance: <a certain distance>
Hi
I think a possible approach as in:
- Chopper (Mode: By Vertex, Maximum Vertices: 2) : Split the input lines into individual line segments.
- 2DVectorCalculator from FME Hub: Calculate x, y components (e.g. _vx, _vy) of 2D vector for each segment. The components specify the direction of each segment.
- AttributeRounder : Round the components with an appropreate precision.
- VertexRemover : Transform each segment to its first vertex point.
- NeighborFinder : Select point where there is same direction point within a certain distance (maximum distance between parallel lines).
- Group By: _vx, _vy
- Transformer Mode/Input: Candidate Only
- Number of Neibours to Fine: 1
- Maximum Distance: <a certain distance>
Excellent