I want to use the GDAL utility ogrinfo with dwg files. Where can I find an GDAL distribution with a support for DWG files (read only)?

DWG support is moved out of the normal GDAL/OGR source distribution. I found this documentation how to include DWG into ogrinfo. But I do not know how to build an executable from a source code. So I am looking for a “ready to use” distribution of gdal (ogrinfo) with DWG support.



3 Answers 3


I am not aware of a GDAL/OGR build available anywhere with DWG support enabled. As noted, this depends on an SDK that requires non-trivially complex licensing arrangements.

If you really need it, you are best off joining the open design alliance and building it yourself.

  • Thanks for your answer. It contains additional information. I marked the response of warrieka as a solution - unfortunately I can not mark two answers as the solution.
    – Jens
    Nov 27, 2012 at 9:56

DWG is a proprietary format owned by Autodesk -> people aren't allowed to just reverse engeneeir it. I believe that the commercial teiga package (what ogr uses for DWG support) requires licencing: you have the pay a montly fee . OSGEO can't include it in their distribution, only paying members can.

Mayby you can use their converter to convert you DWG to DXF, this format is available in most versions of ogr/gdal

  • Thanks for the suggestion to convert dwg to dxf. But I have hundreds of DWG files that I want to examine.
    – Jens
    Nov 26, 2012 at 13:10
  • OK, if there are license fees, then I understand why I can not find a GDAL with DWG in the web.
    – Jens
    Nov 26, 2012 at 13:10
  • 2
    The teiga converter can work recurse trough folders, so flag the checkbox recurse folder and just point to the top folder where your dwg's are stored and write them to an output folder. This can take a while, but it is not manual work.
    – warrieka
    Nov 26, 2012 at 20:11

I would try OSGeo4W package, seems to have quite recent versions.

  • I tried OSGeo4W package. The DWG support is not included.
    – Jens
    Nov 26, 2012 at 12:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.