Skip to main content
How to convert polygons to lines and vice versa?

 

 

I couldn’t figure out how the conversions are implemented in the FME. For example, how polygons are converted to polylines and vice versa?

 

 

Thank you

 

 

Best

 

 

Jamal
There's the GeometryCoercer which can turn a polygon into a closed polyline. Then, depending on what you want and what your data looks like, you can use an Intersector and/or a Chopper to remove overlapping lines and cut them up into smaller bits.
And the area builder correctly grouped to return to polygons
dont forget to treat donuts seperatly...
Many thanks for the help. It works fine

 

 

Best

 

 

Jamal
There's the GeometryCoercer which can turn a polygon into a closed polyline. Then, depending on what you want and what your data looks like, you can use an Intersector and/or a Chopper to remove overlapping lines and cut them up into smaller bits.

Hi, I have a similar question. I turn a polygon to a closed polyline with GeometryCoercer, and then try to decompose it to four lines. But instead of four lines, the result is many of broken segments with Chopper, or only one closed polyline with Intersector. Why is that? Can you help me? Thank you so much.


Hi, I have a similar question. I turn a polygon to a closed polyline with GeometryCoercer, and then try to decompose it to four lines. But instead of four lines, the result is many of broken segments with Chopper, or only one closed polyline with Intersector. Why is that? Can you help me? Thank you so much.

Probably better to post this as a new question


Reply