Skip to main content
Solved

Link attributes of 2 points that are graphically linked by a line

  • August 9, 2022
  • 2 replies
  • 36 views

arash_hokm
Contributor
Forum|alt.badge.img+8

PointsI have 2 kind of points that are connected graphically every 2 points with a line. I would like to know how FME can be used to link the attributes of points with associated ones. I am attaching an example for better understanding.

 

Best answer by gisbradokla

There are likely many solutions to this.

Without seeing any data. I would.

  1. use a guid generator on the line features
  2. use one of either neighborfinder, spatialrelator, pointonlineoverlayer to "associate the points with the lines and get the guid attribute onto the points.

Another method might be to extract the beginning and ending points from the lines with the vertexcreator (instertatindex) 0, and then again for -1 which will get the beginning and ending of each line. Then a point on point overlayer will get the values of the line onto each point. be careful because some (actually most) of the overlayer transformers will creaate points everywhere there is an overlap. like at a T. That is why using the index would be helpful because you only get the beginning vertex and ending vertex.

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.

2 replies

gisbradokla
Enthusiast
Forum|alt.badge.img+17
  • Enthusiast
  • Best Answer
  • August 9, 2022

There are likely many solutions to this.

Without seeing any data. I would.

  1. use a guid generator on the line features
  2. use one of either neighborfinder, spatialrelator, pointonlineoverlayer to "associate the points with the lines and get the guid attribute onto the points.

Another method might be to extract the beginning and ending points from the lines with the vertexcreator (instertatindex) 0, and then again for -1 which will get the beginning and ending of each line. Then a point on point overlayer will get the values of the line onto each point. be careful because some (actually most) of the overlayer transformers will creaate points everywhere there is an overlap. like at a T. That is why using the index would be helpful because you only get the beginning vertex and ending vertex.


arash_hokm
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • August 10, 2022

There are likely many solutions to this.

Without seeing any data. I would.

  1. use a guid generator on the line features
  2. use one of either neighborfinder, spatialrelator, pointonlineoverlayer to "associate the points with the lines and get the guid attribute onto the points.

Another method might be to extract the beginning and ending points from the lines with the vertexcreator (instertatindex) 0, and then again for -1 which will get the beginning and ending of each line. Then a point on point overlayer will get the values of the line onto each point. be careful because some (actually most) of the overlayer transformers will creaate points everywhere there is an overlap. like at a T. That is why using the index would be helpful because you only get the beginning vertex and ending vertex.

Many Thanx :)