Skip to main content
Question

How to convert polygons to lines and vice versa?

  • February 12, 2014
  • 6 replies
  • 2977 views

jamal
Forum|alt.badge.img+5
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

6 replies

redgeographics
Celebrity
Forum|alt.badge.img+49
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.

fmelizard
Safer
Forum|alt.badge.img+18
  • Safer
  • February 12, 2014
And the area builder correctly grouped to return to polygons

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • February 14, 2014
dont forget to treat donuts seperatly...

jamal
Forum|alt.badge.img+5
  • Author
  • February 14, 2014
Many thanks for the help. It works fine

 

 

Best

 

 

Jamal

redgeographics wrote:
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.


ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • June 26, 2020
thewindgone wrote:

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


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