Skip to main content
Question

Find point where lines are parallel


katt
Supporter
Forum|alt.badge.img+12
  • Supporter

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 ?

takashi
Supporter

Hi ​@katt ,

I think a possible approach as in:

  1. Chopper (Mode: By Vertex, Maximum Vertices: 2) : Split the input lines into individual line segments.
  2. 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.
  3. AttributeRounder : Round the components with an appropreate precision.
  4. VertexRemover : Transform each segment to its first vertex point.
  5. 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>
       

danilo_fme
Evangelist
Forum|alt.badge.img+42
takashi wrote:

Hi ​@katt ,

I think a possible approach as in:

  1. Chopper (Mode: By Vertex, Maximum Vertices: 2) : Split the input lines into individual line segments.
  2. 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.
  3. AttributeRounder : Round the components with an appropreate precision.
  4. VertexRemover : Transform each segment to its first vertex point.
  5. 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 ​@takashi 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings