DXF/DWG Driver

The DXFDWG driver is currently a write-only driver dependent on the Open Design Alliance DWGdirect libraries for writing to the DWG and DXF formats. The DWGdirect library is not open source, though it is offered under fairly permissive terms. Because the driver implementation includes adapted portions of the DWGdirect source code, it has had to be moved out of the normal GDAL/OGR source distribution (#1816) and now lives in  http://svn.osgeo.org/gdal/spike/dxfdwg.

Note: The normal GDAL/OGR source has a DXF only, but read-write [ driver].

Driver user documentation:

http://trac.osgeo.org/gdal/browser/spike/dxfdwg/drv_dxfdwg.html

To build:

1) insert driver into your source tree something like:

cd ogr/ogrsf_frmts
svn checkout http://svn.osgeo.org/gdal/spike/dxfdwg

2) Install DWGdirect library somewhere appropriate.

3.linux) On Linux configure using the DWGdirect configure options:

  --with-dwgdirect=path Include DWG direct support
  --with-dwg-plt=platform DWGdirect Platform, defaults to lnxX86

3.win32) On Windows update the DWGdirect portion of the nmake.opt file.

4) Build/install normally.

Open Tickets

#3321
dxf-reader: detection of dashed lines
#4182
OGR writes dxf with English units
#4319
ogr read dxf files problem
#4369
Enhancements to OGR DXF Driver