Skip to main content
Question

Approximate CenterLine of Polygon


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.

2 replies

david_r
Celebrity
  • May 27, 2019

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


Forum|alt.badge.img
  • Author
  • May 31, 2019
david_r wrote:

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!


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