Skip to main content
Question

How to create lines from polygons?

  • Jun 26, 2013 8:06 PM UTC
  • 7 replies
  • 1101 views

I'm doing a dgn to ArcSDE ETL of floor plan lines (fpl) using FME Desktop.  Some of the fpl are "shapes" in the dgn.  I don't know much about cad or dgn but I believe shapes are polygons.  Is there any way to convert these "shapes" to lines?  For example, there are some rectangular shapes.  Can one of these shapes somehow be exploded and converted into four lines?

 

 

Thank you
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.

7 replies

takashi
Celebrity
  • Jun 27, 2013 2:00 AM UTC
Hi Steve,

 

 

You can use the Chopper (Mode = By Vertex, Maximum Vertices = 2) to divide the exterior line of a polygon into segments.

 

 

Takashi

david_r
Celebrity
  • Jun 27, 2013 7:18 AM UTC
Hi,

 

 

the easiest is to use the GeometryCoercer with type "fme_line" as output.

 

 

David

takashi
Celebrity
  • Jun 27, 2013 7:56 AM UTC
Yeah, my first inspiration was also the GeometryCoercer, but from the last sentence of the question "... be exploded and converted into four lines", I thought the line has to be divided into segments.

 

To just transform a polygon to a line, the GeometryCoerser is the easiest solution as David mentioned :-)

 

 

Takashi

  • Author
  • Jun 27, 2013 1:38 PM UTC
Thanks guys!  I did incorporate GeometryCoercer but could not figure out how to chop the lines into individual segments.  Chopper did the trick!

  • Author
  • Jun 27, 2013 1:51 PM UTC
It looks like with Chopper, I don't even need GeometryCoercer.  It takes a polygon, a rectangle for example, and breaks it down into four polylines.  Cool!

takashi
Celebrity
  • Jun 27, 2013 2:13 PM UTC
Hi Steve,

 

 

Glad to know you achieved the purpose. Yes, the Chopper breaks a polygon into lines if you set 2 or 3 to the "Maximum Vertices" parameter. Note that it creates chopped polygons when you set 4 or greater to the parameter.

 

 

Cheers!

 

 

Takashi

  • Author
  • Jun 27, 2013 2:24 PM UTC
Good to know, thanks Takashi!