Skip to main content
Question

Problem reading area with donut hole from autocad dwg file

  • August 25, 2016
  • 3 replies
  • 101 views

Forum|alt.badge.img

Hi, I'm, getting a strange problem while reading a dwg file using the RealDWG reader in FME (version 2016.1.0.1). As shown in the picture below, the autocad file contains area features with holes. However, when FME reads these geometries the hole is missing. Any idea of what is going on and what can be done to fix this problem?

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.

3 replies

takashi
Celebrity
  • August 25, 2016

Hi @masat, in the left image, there seems to be some text labels but they also aren't shown in the right image, I therefore guess you performed a filtering processing to extract the red triangle. The internal small triangle will not appear even if you don't perform the filtering?


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • August 25, 2016

if i create a region, the real dwg reads it correctly.

2 objects

autocad_original_entity_type = regio.

fme_geometry = aggregate and fme_type = surface

 

maybe you filtered out the inner object? (likeTakashi said)

Forum|alt.badge.img
  • Author
  • August 26, 2016

Thanks for your replies. I got the problem solved, although I still don't know why it didn't work before. The inner triangle is a hole in the larger triangle. Also, I didn't apply any filtering. The dwg file came from a gis-cad translation in fme. Previously, in the translation from gis to cad I set the dwgstyler to polygon. Then, when reading back the cad file in fme I got the problem described. The solution was to set the dwgstyler to mpolygon with fill pattern prior converting from gis to cad. After that, fme read the feature as a polygon with a hole.