[gdal-dev] unable to open DGN

Ivan Lucena lucena_ivan at hotmail.com
Mon Nov 23 07:41:41 PST 2015


Just a comment on that: In order to build the DWG driver, you or your company, need to be part of some kind of alliance to be able to download a full version of the Teigha SDK. AFAIK

________________________________________
From: gdal-dev <gdal-dev-bounces at lists.osgeo.org> on behalf of Andre Vautour <andre.vautour at caris.com>
Sent: Monday, November 23, 2015 9:58 AM
To: Brad Hards
Cc: gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] unable to open DGN

On 2015-11-20 17:40, Brad Hards wrote:
> On Fri, 20 Nov 2015 02:20:55 PM Martin Landa wrote:
>> I am trying to open sample DGN file, but it fails. I guess that the
>> reason is unsupported version (man pages says: Microstation DGN files
>> from Microstation versions predating version 8.0 are supported for
>> reading.)
> As I understand it, version 8 is completely different.
>
>> Is there any possibility how to read this file using GDAL library?
> AFAICT, not unless you figure out version 8 format and implement it, or pay
> someone to do that work for you.
I just want to add that Teigha, which can currently be used to open DWG
in GDAL, does support DGN version 8. So, if someone wants to add that
support, I'd suggest looking at the DWG driver.

The DWG driver has:
class OGRDWGServices : public ExSystemServices, public ExHostAppServices

You'd need to have something like:
class OGRDGNServices : public OdRxSystemServices, public OdDgHostAppServices

I would not be surprised if considerable chunks of the DWG driver could
be generalized to work for both DWG and DGN,
André

>   Is it possibly to get the originator to
> provide it in some other format (e.g. DXF, noting that will lose the
> georeferencing)?
>
> Brad
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list