Skip to main content
Solved

Generate complex lines with points

  • August 28, 2018
  • 7 replies
  • 48 views

geo-x
Supporter
Forum|alt.badge.img+6

Dear FME community.

I've to generate a complex line with a points listing. Complew why ? Because the line is a composite of lines and curves. The information of the geometric type is in point's attributes like that :

I only tried with the LineBuilder but I don't know how to do with the curves objects.

Thank you for your help.

Best answer by david_r

Sounds like you need a spline interpolator.

Maybe you can find some inspiration here: https://knowledge.safe.com/questions/2706/create-cubic-bezier-curves.html

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.

7 replies

david_r
Celebrity
  • 8394 replies
  • August 28, 2018

You can use the LineBuilder to create the straight line segments and the 2DArcReplacer to create the arc segments.

Finally, assemble the arcs and the straights using the PathBuilder.


geo-x
Supporter
Forum|alt.badge.img+6
  • Author
  • Supporter
  • 89 replies
  • August 28, 2018

You can use the LineBuilder to create the straight line segments and the 2DArcReplacer to create the arc segments.

Finally, assemble the arcs and the straights using the PathBuilder.

Thank you @david_r but how can I use the transformer 2DArcReplacer in this case ? The arc must be snap to the points and I think this transformer generate random curves no ?

 


david_r
Celebrity
  • 8394 replies
  • August 28, 2018
Thank you @david_r but how can I use the transformer 2DArcReplacer in this case ? The arc must be snap to the points and I think this transformer generate random curves no ?

 

I don't think there's anything random about the curve that is generated, you can specify all the curve parameters in the 2DArcReplacer. If you need the curve starting point to snap to the input point geometry, you could use the Offsetter to move the resulting curve.

 

If you need a more specific answer, it would help if you could post a sample point with curve parameters here.

geo-x
Supporter
Forum|alt.badge.img+6
  • Author
  • Supporter
  • 89 replies
  • August 28, 2018
I don't think there's anything random about the curve that is generated, you can specify all the curve parameters in the 2DArcReplacer. If you need the curve starting point to snap to the input point geometry, you could use the Offsetter to move the resulting curve.

 

If you need a more specific answer, it would help if you could post a sample point with curve parameters here.
Finally, what I need is ArcEstimator but for more than 3 points :-)

 

 


david_r
Celebrity
  • 8394 replies
  • Best Answer
  • August 28, 2018

Sounds like you need a spline interpolator.

Maybe you can find some inspiration here: https://knowledge.safe.com/questions/2706/create-cubic-bezier-curves.html


geo-x
Supporter
Forum|alt.badge.img+6
  • Author
  • Supporter
  • 89 replies
  • August 28, 2018

Sounds like you need a spline interpolator.

Maybe you can find some inspiration here: https://knowledge.safe.com/questions/2706/create-cubic-bezier-curves.html

Thank you very much @david_r. This link is exceptionnal because @takashi ask a question :-)

david_r
Celebrity
  • 8394 replies
  • August 28, 2018
Thank you very much @david_r. This link is exceptionnal because @takashi ask a question :-)
True!