[gdal-dev] Trouble reading .dgn files

Frank Warmerdam warmerdam at pobox.com
Thu Dec 13 14:08:16 EST 2007


Roger André wrote:
> I'm having trouble reading .dgn files using the ogr utilities and can't 
> figure out what I'm doing wrong.  I've tried to read the data a number 
> of different ways:
> 
> ogrinfo ./ D3460_PFA_RDNew.dgn
> ogrinfo ./ D3460_PFA_RDNew
> ogrinfo -all ./ D3460_PFA_RDNew.dgn
> ogrinfo -all ./ D3460_PFA_RDNew.dgn elements
> ogrinfo ./ D3460_PFA_RDNew.dgn elements
> ogrinfo -summary ./D3460_PFA_RDNew.dgn elements
> ogr2ogr -f "ESRI Shapefile" test.shp ./D3460_PFA_RDNew.dgn
> ogr2ogr -f "ESRI Shapefile" test.shp ./D3460_PFA_RDNew.dgn elements
> 
> The .dgn format is new to me, so if anyone could give me advice on how 
> best to work with it using the GDAL libs, I'd very much appreciate it.

Roger,

My first guess would be that these are v8 or newer dgn files.  OGR only
supports the older v7 and earlier format.  What error message are you
getting?  Can you make one of the dgn files available for review?

I'd like to have OGR report a meaningful error for new files if that
is the problem.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the gdal-dev mailing list