Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
podcast
Filter by Categories
ArcGIS Pro
GDAL
GeoJson
Map
Map Tools
Maps
postgis
Python
QGIS
Uncategorized

Converting DWG Files to Shapefiles in QGIS

Converting DWG Files to Shapefiles in QGIS

Step 1: Download and Install QGIS

If you do not have QGIS software installed, you can easily download it from the QGIS website. It’s completely free and easy to install.

Step 2: Load Your DWG File

To start, you need to load the DWG file you want to import into QGIS. Go to Project in the menu, navigate to Import, and select Import Layer from DWG/DXF.

Navigating to import layer from DWG/DXF

Step 3: Select the Target Package

A window will appear prompting you to browse for the target package. Click the designated button to find your destination folder. Give your file a name and save it.

Selecting the target package

Step 4: Choose the Correct Coordinate Reference System (CRS)

It’s important to choose the correct CRS that matches the CAD file. Be cautious in this step to ensure accuracy. You can search for your CRS in the provided options.

Choosing the correct CRS

Step 5: Import the CAD File

In the source drawing section, go to import and find the CAD file you want to add to QGIS. After locating the file, select it and click Open. The import time may vary based on the size of the DWG file.

Importing the CAD file

Step 6: Assign a Group Name

You have the option to assign a group name to the imported layers. After naming the group, click OK. You should now see the DWG file in the QGIS window.

Assigning a group name

Step 7: Convert DWG to Shapefile

To work with vector files in the future, you can convert the DWG file to a shapefile. The CAD file contains several layers, and you can convert each layer as needed.

Viewing the imported DWG file

Step 8: Export Individual Layers

For example, if you want to save the major contours, find the contours layer, right-click, go to Export, and select Save Features As.

Exporting individual layers

Step 9: Select the Output Format

In the format options, select the file type you wish to save. In this case, choose ESRI Shapefile. You can also convert to KML if needed.

Selecting the output format

Step 10: Save the File

After selecting the shapefile format, browse to the destination folder, give your file a name, and save it. Ensure you select the correct CRS again before hitting OK.

Saving the shapefile

Conclusion

Your shapefile will now be visible in QGIS. You can find the saved file in the designated folder. This process allows you to save all required layers of the DWG file to shapefile format.

FAQ

  • Can I convert multiple layers at once? No, you can only convert individual layers as needed.
  • Can I convert to other formats besides shapefile? Yes, you can also convert to KML or other formats listed during the export process.

About the Author
I'm Daniel O'Donohue, the voice and creator behind The MapScaping Podcast ( A podcast for the geospatial community ). With a professional background as a geospatial specialist, I've spent years harnessing the power of spatial to unravel the complexities of our world, one layer at a time.