All converters
HomeBlog › What is a DXF file? Using CAD drawings in GIS

What is a DXF file? Using CAD drawings in GIS

By Ghulam Hasnain · PhD researcher, Space Science & Technology · · Updated · 3 min read

A DXF file is where CAD meets GIS. So engineers hand you one, and you need it on a map. This guide explains what a DXF file is, and how to bring it into GIS cleanly.

Advertisement

What a DXF file is

DXF is Autodesk's open drawing format. Almost every CAD tool reads and writes it. So it is the usual bridge from AutoCAD to other software. As a result, a DXF file often arrives when engineering meets mapping.

What is a DXF file: CAD drawing layers brought into GIS software
A DXF file carries CAD geometry that GIS can read once you set the coordinate system.

What it stores

A DXF file holds drawing elements. For example, lines, polylines, arcs and text. It also uses layers and blocks. So it thinks in drawings, not in map features.

Why CAD data is different from GIS

CAD and GIS look similar, but they differ. CAD is drawing-centric. GIS is feature-centric. So a DXF file has layers and blocks, not an attribute table. As a result, some translation is always needed.

The coordinate problem

Here is the big catch. A DXF file often uses a local or engineering grid. So it may sit in metres, far from latitude and longitude. Therefore you must set the coordinate system before mapping.

Bring a DXF file into GIS

The process is short. First, open the drawing in your GIS or a converter. Next, tell it the coordinate system. Then reproject to WGS84 if you need a web map. Finally, save it as a GIS format.

Set the coordinate system

This step matters most. Without it, the drawing lands in the wrong place. So find the project's system, like a UTM zone. Then assign it. You can look codes up at epsg.io.

Convert a DXF file to a map format

You can convert it in your browser, with nothing uploaded. For example, DXF to KML for Google Earth. Or DXF to Shapefile and DXF to GeoJSON for GIS.

What survives the trip

Geometry converts well. Layers usually map to a field. However, blocks and styling may simplify. So check the result in your GIS. You can read the format notes on the DXF overview. In short, a DXF file is easy to map once the coordinate system is set.

Frequently asked questions

What is a DXF file?

DXF is Autodesk's open CAD interchange format. It stores drawing elements such as lines, polylines, arcs and text, organised by layers and blocks, and is supported by nearly every CAD and GIS program.

Why does my DXF file appear in the wrong place in GIS?

CAD drawings often use a local or projected engineering grid in metres, not latitude and longitude. If the coordinate system is not set, the drawing lands far from where it should. Assign the correct CRS before mapping.

How do I convert a DXF file to KML or a shapefile?

Open the DXF in a converter, set its coordinate system, then export to KML for Google Earth or to a shapefile for GIS. A browser-based tool does this locally, so the drawing is never uploaded.

What is the difference between CAD and GIS data?

CAD is drawing-centric and uses layers and blocks, while GIS is feature-centric and uses an attribute table. Converting a DXF file translates drawing geometry into GIS features, so expect some simplification.

Can I open a DWG file the same way?

DWG is AutoCAD's binary format and is harder to read directly. Save it as a DXF in your CAD program first, then convert the DXF to the GIS format you need.

Related converters

Keep reading

About the author

Ghulam Hasnain is a PhD researcher in space science and technology who works with GIS and remote-sensing data every day, wrangling shapefiles, KML, GPX and CAD drawings across QGIS, ArcGIS and Google Earth. He built GISConverter after one too many format conversions that required uploading sensitive survey data to a stranger's server.

Advertisement