Skip to main content
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
Hi Steve,

 

 

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

 

 

Takashi
Hi,

 

 

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

 

 

David
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
Thanks guys!  I did incorporate GeometryCoercer but could not figure out how to chop the lines into individual segments.  Chopper did the trick!
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!
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
Good to know, thanks Takashi!

Reply