Skip to main content
Solved

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


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.

View original
Did this help you find an answer to your question?

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
gisbradokla wrote:

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 :)


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