[GIS] Importing DWG into QGIS project

dwgimportqgis

I have a lot of DWG files like basemap, and water and wastewater network.

How do I import these files into my QGIS project?

Best Answer

In the newer versions of QGIS (2.18+) there was a feature implemented to import .dwg-files into geopackages (.gpkg).

This feature can be found under:

Project >> DWG/DXF-import

In order to make it work, you can follow those steps:

  1. Create a new/load an existing Geopackage with a fitting CRS
  2. Import DWG-file
  3. Check 'Expand block references' and 'Use curves' if needed
  4. Set 'Group name' of your choosing
  5. Uncheck unwanted CAD-layers
  6. checking 'Merge layers' is advised

showcase of *.dwg import in QGIS

Some additional notes:

  • The tool will try to represent the CAD-drawing as close as possible with some limitations on annotations, labels and hatches.
  • some special features from addins and plugins etc for the AutoDesk CAD product family can break the import function of QGIS, like 'digital surface models'
Related Question