Skip to main content
Solved

Generate complex lines with points


geo-x
Contributor
Forum|alt.badge.img+5
  • Contributor

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

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

7 replies

david_r
Celebrity
  • 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
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • August 28, 2018
david_r wrote:

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
  • August 28, 2018
geo-x wrote:
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
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • August 28, 2018
david_r wrote:
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
  • 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
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • August 28, 2018
david_r wrote:

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
  • August 28, 2018
geo-x wrote:
Thank you very much @david_r. This link is exceptionnal because @takashi ask a question :-)
True!

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