SHP to DWG: Opening a Shapefile in AutoCAD Without Losing Coordinates

2026-08-135 min read
ShapefileSHPDWGDXFAutoCADGIS

"Open a shapefile in AutoCAD", "shp to dwg", "convert shp to dxf" — different queries, one task: a GIS colleague sent data and the design work happens in CAD. A shapefile travels into AutoCAD reliably, but it has two quirks that make half the attempts end in an empty drawing or in coordinates far from where they should be.

A shapefile is not one file

The first thing to check is completeness. A .shp on its own is useless, it is only geometry. The full set looks like this:

  • .shp — the geometry itself (points, lines, polygons);
  • .shx — the index; without it some programs will not open the file;
  • .dbf — the attribute table (names, types, areas);
  • .prj — the coordinate system description;
  • sometimes .cpg (text encoding for the .dbf) and .sbn, .sbx (spatial indexes).

They must all sit in one folder and share the same base name. If you were sent only the .shp, ask for the rest — they cannot be reconstructed.

Why coordinates drift without the .prj

The .prj file carries no data, only a description of the coordinate system. But without it no program knows what the numbers inside the .shp mean: degrees, metres of a local grid, or feet. Guesswork follows, and the object ends up either near the prime meridian or thousands of kilometres from where it belongs.

If the .prj is lost, ask the data author for the coordinate system and assign it manually: in QGIS that is Layer Properties → Source → Assigned CRS. Keep the distinction clear — assigning a CRS tells the program what the numbers already are, while reprojecting recalculates them. Confusing the two is a reliable way to land your data in the ocean.

Route 1. AutoCAD Map 3D or Civil 3D

With an extended version no conversion is needed at all:

  1. Command MAPIMPORT (Insert → Import → Map).
  2. Choose the ESRI Shapefile file type and point at the .shp.
  3. In the import dialog set the source coordinate system if it was not picked up from the .prj.
  4. In the Data layer column choose the field that will split objects into drawing layers: road class, building use, and so on.
  5. Tick Import data as object data if you want the attributes inside the drawing.

Plain AutoCAD LT has no such command; for it, use the next route.

Route 2. QGIS

The free and universal option.

  1. Layer → Add Layer → Add Vector Layer, pick the .shp.
  2. Make sure the layer lands where it should on the map.
  3. Right-click the layer → Export → Save Features As.
  4. Format — AutoCAD DXF; in the CRS field set a metric system: a UTM zone or the local grid. Keep degrees and the drawing comes out a fraction of a unit across; the mechanics of that reprojection are the same for any geographic data and are covered in detail in KML and KMZ to DWG.
  5. Save and open the DXF in AutoCAD.

If there are several layers (roads, buildings, water), export them one by one, or use Project → Import/Export → Export Project to DXF, which preserves the split into layers.

Route 3. A single ogr2ogr command

With GDAL installed:

ogr2ogr -f DXF roads.dxf roads.shp -t_srs EPSG:32637

EPSG:32637 is UTM zone 37N — substitute your own. The -t_srs switch is exactly that reprojection into metres.

What will not reach DWG

A shapefile is geometry plus an attribute table, while DXF stores entities and layers with no table: street names, storey counts and areas from the .dbf will not appear in the drawing, and styling does not transfer either — colours are set through layers inside CAD. Labels are prepared in advance: in QGIS set them up on the field you need and use Vector layer → Convert labels to annotations, or export a separate point layer carrying the text. The full account of what gets lost on the way from a geographic format into CAD is in KML and KMZ to DWG.

One trouble is specific to shapefiles — encoding. If names come out as garbage, the culprit is the .cpg or the .dbf encoding (Cyrillic data is usually CP1251); QGIS lets you set the encoding in the layer properties before export.

A detailed breakdown of the format is in Shapefile: a deep dive, and the structure of DXF is covered in DXF: a deep dive.

And if you need DWG right away

All three routes produce DXF. The simplest way to turn it into DWG is AutoCAD itself: open the file and use File → Save As → AutoCAD Drawing. No separate converter is required. Which format suits which task is discussed in Which format to choose for CAD import.

Easier — download the base map already in a CAD format

If the shapefile was only ever needed as a base map (roads, buildings, water, greenery around the site), the whole conversion chain is redundant. Select the area and download it straight as DWG or DXF: OpenStreetMap data arrives already split into drawing layers, in metres, in the coordinate system you choose. And if a GIS format is what you actually need, SHP is available there too.

In short

  • A shapefile is a set: .shp, .shx, .dbf, .prj; an incomplete set will not work.
  • Without the .prj the program does not know the coordinate system, and the data drifts.
  • AutoCAD Map 3D and Civil 3D read SHP directly via MAPIMPORT, with layer splitting.
  • The universal route: QGIS → Export → Save Features As → DXF in a metric CRS.
  • In one command: ogr2ogr -f DXF out.dxf in.shp -t_srs EPSG:32637.
  • .dbf attributes do not travel into the drawing; prepare labels before exporting.
← All articles