Question

Add vertexes along lines

  • 15 September 2014
  • 4 replies
  • 41 views

Badge
Dear FME community,

 

 

I want to add new points (vertexes) to a line. For example:

 

 

I have a line of 100 meters with two points (start point and end point). I want to add 9 new points, so that the line gets new vertexes every ten metres. Is this possible in FME "out of the box", or do I new Python for that? The VertexCreator seems to be the right tool, but how can I tell it to add a point in a regular intervall (I do not have list with the new coordinates).

 

 

Kind regards from Germany

 

Thomas

4 replies

Userlevel 2
Badge +17
Hi Thomas,

 

 

If the line always has only 2 nodes (start and end), the Densifier transformer might help you.

 

Just be aware the transformer has two different modes (Exact / Uniform Interval). It depends on your requirement which of them should be applied.

 

 

Takashi
Badge +3
Hi,

 

 

Take a look at the cloner/snipper solutions offered in this thread:

 

 

https://safecommunity.force.com/CommunityAnswers?id=906a0000000csdWAAQ
Badge +3
Ah,

 

 

did'nt know they now have a transformer for it..lol.

 

Well, at least for interval types.

 

 

No table based densification i see...tsktsk..ommision.
Userlevel 2
Badge +17
The densifying by the Densifier will be performed for each segment in a line. Therefore, the Densifier may not work as expected if the input line could be a polyline that consists of 3 or more vertices.

 

In such a case, see the thread that Gio suggested.

Reply