<div dir="ltr"><div>Hi,</div><div><br></div><div>There are actually several options and libraries for the handling of dxf/dwg files:</div><div><br></div><div>- libdxfrw (patched and improved by Jürgen) and lives within the QGIS source tree - this is used for the import/export when using the commands in the project menu for several layer at once</div><div>- ogr ( <a href="https://gdal.org/drivers/vector/dxf.html">https://gdal.org/drivers/vector/dxf.html</a> ) - this is used when you do layer right-click --> Export --> Save Features As ...</div><div>- ogr enhanced with the Open Design Alliance Teigha library (requires a license agreement for distribution --> so hardly ever used). QGIS doesn't ship with Teigha.</div><div><br></div><div>The third option probably gives the best results, but due the license issue it isn't really available.</div><div><br></div><div>Hope this clarifies the situation a bit. Jürgen can probably explain better the situation around libdxfrw and Even the second option in OGR (or the devs who did the driver).</div><div><br></div><div>Greetings,<br></div><div>Andreas<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 13 Jul 2023 at 09:31, Johannes Kröger (WhereGroup) via QGIS-Developer <<a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Matteo,<br>
<br>
I assume that those are provided via GDAL. Check <br>
<a href="https://gdal.org/drivers/vector/" rel="noreferrer" target="_blank">https://gdal.org/drivers/vector/</a> for how to get a GDAL that supports them.<br>
<br>
<a href="https://gdal.org/drivers/vector/cad.html" rel="noreferrer" target="_blank">https://gdal.org/drivers/vector/cad.html</a> sounds like you need to make <br>
sure that your GDAL was compiled with its internal libopencad or you <br>
could use <a href="https://gdal.org/drivers/vector/oda.html" rel="noreferrer" target="_blank">https://gdal.org/drivers/vector/oda.html</a><br>
<br>
Good luck!<br>
<br>
Hannes<br>
<br>
Am 13.07.23 um 09:10 schrieb Matteo Ghetta via QGIS-Developer:<br>
> Hi all,<br>
><br>
> I'm on a Debian testing fresh machine and with both QGIS 3.28 from <br>
> package and master compiled I cannot import DWG/DXF. This is the error <br>
> I get:<br>
><br>
> Drawing import failed (unsupported version. Cannot read AutoCAD <br>
> 2018/2019/2020 documents.)<br>
><br>
> I don't remember if there is a procedure on Linux (Debian) to compile <br>
> QGIS with a driver that allows to import those formats.<br>
><br>
> Thanks for any suggestion!<br>
><br>
> Matteo<br>
> _______________________________________________<br>
> QGIS-Developer mailing list<br>
> <a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br>
-- <br>
Johannes Kröger / GIS-Entwickler/-Berater<br>
<br>
---------------------------------------------<br>
Aufwind durch Wissen!<br>
Web-Seminare und Online-Schulungen<br>
bei der <a href="http://www.foss-academy.com" rel="noreferrer" target="_blank">www.foss-academy.com</a><br>
---------------------------------------------<br>
<br>
WhereGroup GmbH<br>
c/o KK03 GmbH<br>
Lange Reihe 29<br>
20099 Hamburg<br>
Germany<br>
<br>
Tel: +49 (0)228 / 90 90 38 - 36<br>
Fax: +49 (0)228 / 90 90 38 - 11<br>
<br>
<a href="mailto:johannes.kroeger@wheregroup.com" target="_blank">johannes.kroeger@wheregroup.com</a><br>
<a href="http://www.wheregroup.com" rel="noreferrer" target="_blank">www.wheregroup.com</a><br>
Geschäftsführer:<br>
Olaf Knopp, Peter Stamm<br>
Amtsgericht Bonn, HRB 9885<br>
-------------------------------<br>
<br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><br>--<br>Andreas Neumann<br></div><a href="http://QGIS.ORG" target="_blank">QGIS.ORG</a> board member (treasurer)<br></div></div>