This is my desired output: I want to generate the red line.
CenterlineReplacer does not do a good job btw.
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.
Which version of FME are you using? Because the CentreLineReplacer has received some updates and fixes in recent versions. I tried this in 2019 using an approximation of your geometry, and it worked fine:
Which version of FME are you using? Because the CentreLineReplacer has received some updates and fixes in recent versions. I tried this in 2019 using an approximation of your geometry, and it worked fine:
See attached workspace.
How come the line looks so weird? It is not straight and doesn't touch the edges.
How come the line looks so weird? It is not straight and doesn't touch the edges.
Try the medial line mode. That should make it straight. Then you could do something like the Intersector, AnchoredSnapper, or LineExender to extend it to the full extents of the polygon (I've no idea why it doesn't reach that far).