Convert DXF to GPKG

Turn DXF documents into GeoPackage. A GeoPackage with one layer of the features and their attributes, in the source's coordinate system.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop DXF files on the dialor turn it to pick what to do

DXF drawings as a GeoPackage layer.One layer with the features and their attributes, in the source's coordinate system.

  1. What you get

    A GeoPackage with one layer. It holds the features from the DXF and their attributes, so QGIS and ArcGIS can open it as a map layer.

    The layer stays in the coordinate system of the source file. Nothing is moved or reprojected.

    Lists and nested values in the attributes become JSON text.

  2. What it leaves behind

    Paper space layouts are dropped. Colors, line weights and text styles are dropped too, so the layer carries the geometry and attributes but not the look of the drawing.

    If you need the styling, it has to be set again in your GIS program.

  3. Damaged files

    A DXF cut off before its EOF marker fails with input_corrupted. The conversion stops there instead of writing a partial layer.

DXF and GPKG.What each format is.

The formats

From · DXF

AutoCAD DXF

AutoCAD's drawing exchange format. Vector geometry that CAD programs share.

Extensions
.dxf
MIME type
image/vnd.dxf
Kind
Documents
To · GPKG

GeoPackage

The OGC GeoPackage, a SQLite database of map layers that QGIS and ArcGIS read and write.

Extensions
.gpkg
MIME type
application/geopackage+sqlite3
Kind
Text and data

In your code.The same DXF to GPKG conversion through the API, for your app or your agent.

terminal
$ cv convert report.dxf report.gpkg
$ cv convert report.dxf report.gpkg

Questions.What people ask about DXF to GPKG.

01OF 04

Yes. The features stay in the source's coordinate system.

No. Colors, line weights and text styles are dropped.

You get one file with one layer of the features and their attributes.

The file was cut before its EOF marker. A DXF that ends early is not converted.

More conversions.Other ways in and out of DXF and GPKG.