Skip to main content

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.

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.


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 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

 

 

 

 


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 :-)

 

 


@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 ?