Skip to main content
Question

Approximate CenterLine of Polygon

  • May 27, 2019
  • 2 replies
  • 465 views

Forum|alt.badge.img

I am working on FME 2019.0.1 I am trying to find out a center line(Approx. Center Line in FME 2019) of the polygon in the below geometry. The polygon is the input and polyline is the output.

I tried using Generalizer with Douglas(Generalize)with varied Tolerance (after using converting it to LL-84) and McMaster (Smooth) and above is the best output. In the ideal scenario, the output should look something like below:

 

Basically, the polylines touching the center end parts of the polygon.

My approach: Create a bounding box. Put weights at the points touching the polygons. Join the polyline output at weights. Will that be a possibility? I have still not worked on it. Just an idea.

Any other ideas I can work upon! Thanks.

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.

2 replies

david_r
Celebrity
  • 8394 replies
  • May 27, 2019

Did you try the CenterLineReplacer and each of the three different modes?


Forum|alt.badge.img
  • Author
  • 39 replies
  • May 31, 2019

Did you try the CenterLineReplacer and each of the three different modes?

Thanks @david_r for your response. I have tried all 3 of them and Approx Center Line fixes the issue in the most perfect way.

I have shared the base map of the road. This might provide a very clear picture and what is to be required. The end nodes on point 1 and 2 are going away from the central part of the polygon shape. Point 3 is understandable since the polygon was captured from satellite imagery, but, somehow I feel 1 and 2 can come towards the center.

I tried using Generalizer using multiple algorithms but not very much helpful. I think it might be possible with a series of transformers that I cannot reach.

Your views on that!