Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using FME to transform a dwg file into a polygon shapefile (.shp).

The dwg file is an urban plan of a city consisting of building blocks (type: polylines) and the properties within each block (type : line).

I used the GeometryCoercer transformer to convert type:line to type:polygon but it does not seem to work. I have also tried AreaBuilder, no success.

For those familiar with the FME software can you suggest Any solutions?


I attach an image of the dwg file (INPUT) enter image description here

green closed polylines represent building blocks orange lines represent properties

I used the workspace as provided by @Mapperz, but it didnt work out. I set the geometry coercer *type : fme_line* , then 2dForcer and AREA BUILDER writing to a .shp with attributed geometry *shape_polygon*. This is what I get.

enter image description here

When I set the output .shp geometry to *shape_polyline* I get the following enter image description here

I need a shapefile where all buildings and all properties will have a polygon geometry in order to add attributes to each polygon.

share|improve this question
Would it be possible for you to post a small sample area of your data? – blah238 Sep 26 '12 at 16:59
From the screenshots I think you need to make your purple polygons into lines then use the feature merger to have all your lines together - then build polygons - they are currently separate layers.… – Mapperz Sep 27 '12 at 13:38
resolved, thank you. – Nik Sep 27 '12 at 15:10
up vote 4 down vote accepted

Using FME 2013 beta here

read the CAD [DXF] control the geometry - GeometryCoercer (FMEline) control the geometry - Force 2D (2d line only)

Build the Polygons

Output port AREA

Write Shapefile

See Image - as proof of concept.

enter image description here

share|improve this answer
response given as an update to the original question. – Nik Sep 27 '12 at 10:04
Source Data: Cadastral boundaries DWG – Mapperz Sep 27 '12 at 13:31

with autocad map this can be accomplished fairly easily.
Perhaps the first thing you should do is to close the polylines that may give you a better polygon result.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.