[gdal-dev] convert s57 to shp via ogr2ogr?

Randy randyqiuxy at hotmail.com
Sat Apr 17 22:09:09 EDT 2010


Hi Frank,
Thanks for your response!
> The first message indicates that there are some fields of
> a type that cannot be translated to shapefiles directly.  With
> -skipfailures they should be just skipped.
> 
> The second message is caused when an S-57 layer has a mixture
> of geometry types.  Shapefiles can only have one geometry
> type (ie. line or point) per layer.   The traditional way to
> address this is to do two translations for layers with a mixture
> of geometries, one for each geometry type.
> 
> So you command is reasonable, but to translate S-57 the best
> that is possible you will likely need to do the translation
> one layer at a time,
The ogr2ogr has "[-clipsrclayer layer]" which seems could do translation
one layer at a time,but this means I should get the layername via
"ogrinfo" first,right?


> and establish what geometry types each
> has.  Rather tedious!

Best regards,
Randy
> Best regards,



More information about the gdal-dev mailing list