[FWTools] Convert dgn to shapefile

Frank Warmerdam warmerdam at pobox.com
Fri Nov 24 00:49:22 EST 2006


HIWI-CAD wrote:
> Hi,
> i´m trying to convert a dgn file to a shpefile. The dgn file contains 
> annotation, Line, Point and polygon elements, but I only want to extract 
> the line elements into a shapefile format. I have tried using the   -nlt 
> LINE Command but this is not working.
>  
> Can anyone tell me how I could do this?
>  
> ogr2ogr -nlt LINESTRING -f "ESRI Shapefile" Path to shpfile path to dgnfile

Robert,

You don't describe the problem with the above approach.  But I suspect
the translation is failing on the first non-line geometry, is that right?
Add in the -skipfailures flag to continue after a feature fails to translate.
If your problem is different, please provide more information.

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 FWTools mailing list