Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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.

Thanks

Jens

share|improve this question
add comment

3 Answers 3

up vote 3 down vote accepted

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

share|improve this answer
    
Thanks for the suggestion to convert dwg to dxf. But I have hundreds of DWG files that I want to examine. –  Jens Nov 26 '12 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 '12 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 '12 at 20:11
add comment

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.

share|improve this answer
    
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 '12 at 9:56
add comment

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

share|improve this answer
    
I tried OSGeo4W package. The DWG support is not included. –  Jens Nov 26 '12 at 12:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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