Skip to main content
Solved

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

  • August 9, 2022
  • 2 replies
  • 522 views

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

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

ebygomm
Influencer
Forum|alt.badge.img+46
  • 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