ogr2ogr output layer type

Radim Blazek blazek at i...
Thu Nov 14 08:14:25 EST 2002


Hi,

I cannot convert DGN file to shapefile because DGN contains more
feature types and ogr2ogr stops with:

ERROR 1: Attempt to write non-linestring (POLYGON) geometry to ARC type 
shapefile.
ERROR 1: Terminating translation prematurely after failed
translation of layer elements

even if I use '-nlt LINESTRING'. Would it be possible to change ogr2ogr
so that it works only on features of type specified by '-nlt'?

I can use somethink like where="Type = 3 or Type = 4" but it does not
seem to be optimal.

Thanks

Radim




More information about the Gdal-dev mailing list