Randy wrote:
> Hi list,
> 
> I’d like to know whether ogr2ogr could convert s57 files to ERSI shape 
> file(.shp)?
> 
> I got some errors during converting:
> 
> ERROR 6:Can’t create fields of type StringList on shapefile layers.
> 
> ……………
> 
> Same as above
> 
> ERROR 1:Attempt to write non-polygon <LINESTRING> geometry to type 
> shapefile
> 
> ……………….
> 
> Same as above
> 
>  
> 
> And I use the command:”ogr2ogr �Cskipfailures  -f “ESRI Shapefile” out 
> US1AK90M.000”.
> 
> Is there anything wrong about my command?
> 
> Or the ogr2ogr have some defect?

Randy,

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,and establish what geometry types each
has.  Rather tedious!

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, [email protected]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to