Skip to main content
Question

Move one vertex of a line

  • May 15, 2018
  • 5 replies
  • 157 views

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

Dear FME community.

I've a line with vertex and I want for example to move point 1 (x : 100 y: 100) to x : 102 y : 80.

I've attribute with Start X, Start Y, End X, End Y and line ID.

It is possible to do that ?

Thank you.

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.

5 replies

lars_de_vries
Forum|alt.badge.img+10

You could use a VertexCreator for that. It has an option 'Replace Point At Index'.

You'll need to know the index first, but you can find that one using the CoordinateExtractor.


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

Thank you for your answer @lars_de_vries finally I used the transformer CoordinateReplacer and that's works ! I think both solutions are good.

Thank you for your help


takashi
Celebrity
  • 7843 replies
  • May 15, 2018

Thank you for your answer @lars_de_vries finally I used the transformer CoordinateReplacer and that's works ! I think both solutions are good.

Thank you for your help

Just be aware there is a case that the result with the CoordinateReplacer is different from the result with the VertexCreator, since the CoordinateReplacer modifies coordinate elements (x, y, z) independently according to each pair of Find and Replace.

 

Red: CoordinateReplacer, Blue: VertexCreator, Gray: Original Line

 

 

 

 


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

Thank you for your answer @lars_de_vries finally I used the transformer CoordinateReplacer and that's works ! I think both solutions are good.

Thank you for your help

Thank you very much for your warning Takashi :-)

 

 


amolparande
Forum|alt.badge.img+1
  • 29 replies
  • May 17, 2018

@lalandexavier I have same problem for shifting line x,y coordinate some how could not work is it possible to share workbench for my understanding how it's work ?