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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.