[gdal-dev] Adding The DWG Driver to ogr2ogr?

Brandon Biggs brandon.biggs at ski.org
Wed Oct 16 09:34:22 PDT 2019


Hello,
When you say "built against the Open Design Alliance Teiga library", what does that mean? Do they have their own dll that needs to be included, or do they have their own set of tools that need to be used to build gdal from source?
Is there a tutorial on how to build gdal from source?
I found:
https://www.opendesign.com/guestfiles/oda_file_converter
ODA File Converter | Open Design Alliance<https://www.opendesign.com/guestfiles/oda_file_converter>
ODA File Converter. ODA File Converter application features a graphical interface and a command-line interface, and accepts the following inputs:
www.opendesign.com

Which converts from dwg to dxf, then gdal can convert dxf to whatever I need.
Thanks,


Brandon Biggs<https://www.ski.org/users/brandon-biggs>
Engineer

Smith-Kettlewell Eye Research Institute
Office: 415-345-2130
Cell: 650-833-9394

________________________________
From: Even Rouault <even.rouault at spatialys.com>
Sent: Wednesday, October 16, 2019 8:55 AM
To: Brandon Biggs <brandon.biggs at ski.org>
Cc: gdal-dev at lists.osgeo.org <gdal-dev at lists.osgeo.org>; Alan Snow <alansnow21 at gmail.com>
Subject: Re: [gdal-dev] Adding The DWG Driver to ogr2ogr?

On mercredi 16 octobre 2019 15:43:26 CEST Brandon Biggs wrote:
> Hello Even,
> It makes sense that the driver is proprietary, but the documentation page:
> https://gdal.org/drivers/vector/dwg.html
> makes no mention of this fact.

It does. This is the first sentence: "OGR supports reading most versions of
AutoCAD DWG when built with the Open Design Alliance Teiga library."
Feel free to submit a PR to make it clearer (the doc of the DGNv8 driver
https://gdal.org/drivers/vector/dgnv8.html is perhaps a bit clearer)

> What is the process for including the gdal driver in the build? Is there a
> newbie tutorial on how to build gdal from source? Thank you,

The comment about building being ad-hoc is probably outdated. This is not so
bad, at least on Linux

>From what I've available there:

For Linux
./configure --with-teigha=/path/to/Teigha_lnxX64_5.3dll

For Windows, you need to tweak with the TD_ variables in nmake.opt
The instructions seems a bit outdated. I believe I tried on Windows, but don't
have that config available anymore.

Even

--
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20191016/5e8a9f29/attachment-0001.html>


More information about the gdal-dev mailing list