Skip to main content
Solved

How do you construct points along a line knowing their distance from the origin of the line?


jb_besnier
Contributor
Forum|alt.badge.img+1

Hello.

I have a layer of lines and a table of observations on these lines.

The line observation table contains the ID of the line on which the observation is made as well as its distance from the line origin.

 

I would like to build a layer of points along the lines containing the information of the observations respecting the distance of the observations to the origin.

 

Do you have any ideas? My research has only allowed me to create points in a regular way without being able to assign the attributes of the observations.

 

I am a beginner in FME, thanks in advance for your answers.

Best answer by ebygomm

One possible method, although not the most efficient.

  • Generate a measure on the line
  • Transfer the geometry with measure to the observation information (so you end up with each observation having the geometry of the line)
  • Use the snipper with mode measure and use the distance information to set the start and end. Setting the start and end to the same value results in a point at the specified distance along the line

image

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

2 replies

ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • Best Answer
  • August 9, 2022

One possible method, although not the most efficient.

  • Generate a measure on the line
  • Transfer the geometry with measure to the observation information (so you end up with each observation having the geometry of the line)
  • Use the snipper with mode measure and use the distance information to set the start and end. Setting the start and end to the same value results in a point at the specified distance along the line

image


jb_besnier
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • August 10, 2022

It may not be the most effective but it is very smart and works perfectly. Thank you very much for your quick and precise answer


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