[QGIS-Developer] Library for importing dwg

Nyall Dawson nyall.dawson at gmail.com
Sun Sep 6 16:22:15 PDT 2020


On Sat, 5 Sep 2020 at 06:11, Jesús de Diego Alarcón <jesdial at gmail.com> wrote:
>
> OK Let's try then

FYI there's also libredwg -- https://github.com/LibreDWG/libredwg ,
which is seeing a lot of development focus recently (maybe at some
stage we should abstract out the backend dwg library in qgis to give
users a choice of backend to use for conversion...)

Nyall

>
> Thanks a lot
>
> Jesús de Diego
>
> El vie., 4 sept. 2020 a las 20:10, Andreas Neumann (<a.neumann at carto.net>) escribió:
>>
>> Hi Jesús,
>>
>> No - that's a misconception. Despite the name of the library it also reads DWG files. It's not perfect, but it reads DWG ;-)
>>
>> Greetings,
>>
>> Andreas
>>
>> Am 04.09.20 um 17:43 schrieb Jesús de Diego Alarcón:
>>
>> Hi Andreas
>>
>> First of all, thank you so much for your (quick) answer. I will take a look but it seems that libdxfrw is working for dxf files, not dwg...Any case I will take a look.
>>
>> Thanks again
>>
>> Jesús de Diego
>>
>> El vie., 4 sept. 2020 a las 14:48, Andreas Neumann (<a.neumann at carto.net>) escribió:
>>>
>>> Hi,
>>>
>>> It is using the libdxfrw library.
>>>
>>> Jürgen might have forked/patched it though, because activity in the original project is basically stalled -  I think you can find our version here: https://github.com/qgis/QGIS/tree/master/external/libdxfrw
>>>
>>> Greetings,
>>>
>>> Andreas
>>>
>>> On 2020-09-04 14:38, Jesús de Diego Alarcón wrote:
>>>
>>> Dear all
>>>
>>> I would like to know which library is using QGIS for importing dwg files (this functionality is accessible in File >  Import/Export > Importing a DXF or DWG file ).
>>>
>>> I had supposed that this functionality was using the newly-developed OGR CAD driver... But I have tried with ogr2ogr both command line and Python console and dwg files are not supported (at least the same dwf file I am able to import with the mentioned functionality).
>>>
>>> Any help will be appreciated. Thank you in advance
>>>
>>> Jesús de Diego
>>>
>>> --
>>> Jesús de Diego Alarcón
>>> jesdial at gmail.com
>>>
>>> "La vida es linda, lo malo es que muchos confunden lindo con fácil."
>>> Mafalda
>>>
>>> _______________________________________________
>>> QGIS-Developer mailing list
>>> QGIS-Developer at lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>>
>>>
>>
>>
>> --
>> Jesús de Diego Alarcón
>> jesdial at gmail.com
>>
>> "La vida es linda, lo malo es que muchos confunden lindo con fácil."
>> Mafalda
>
>
>
> --
> Jesús de Diego Alarcón
> jesdial at gmail.com
>
> "La vida es linda, lo malo es que muchos confunden lindo con fácil."
> Mafalda
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the QGIS-Developer mailing list