Trying conver s57 files to shape. First added enviroment variable:
OGR_S57_OPTIONS
with value
RETURN_PRIMITIVES=ON,RETURN_LINKAGES=ON,LNAM_REFS=ON
Then run:
ogr2ogr -overwrite -skipfailures "US1GC09M_1.shp" -nlt point "US1GC09M.000" wrecks
But have got multiple errors:
Warning 1: The output driver does not natively support StringList type for field LNAM_REFS. Misconversion can happen. -mapFieldType can be used to control field type conversion.
ERROR 6: Can't create fields of type StringList on shapefile layers.
Warning 1: The output driver does not natively support IntegerList type for field FFPT_RIND. Misconversion can happen. -mapFieldType can be used to control field type conversion.
ERROR 6: Can't create fields of type IntegerList on shapefile layers.
Warning 1: The output driver does not natively support IntegerList type for field NAME_RCNM. Misconversion can happen. -mapFieldType can be used to control field type conversion.
ERROR 6: Can't create fields of type IntegerList on shapefile layers.
Warning 1: The output driver does not natively support IntegerList type for field NAME_RCID. Misconversion can happen. -mapFieldType can be used to control field type conversion.
ERROR 6: Can't create fields of type IntegerList on shapefile layers.
Warning 1: The output driver does not natively support IntegerList type for field ORNT. Misconversion can happen. -mapFieldType can be used to control field type conversion.
ERROR 6: Can't create fields of type IntegerList on shapefile layers.
Warning 1: The output driver does not natively support IntegerList type for field USAG. Misconversion can happen. -mapFieldType can be used to control field type conversion.
ERROR 6: Can't create fields of type IntegerList on shapefile layers.
Warning 1: The output driver does not natively support IntegerList type for field MASK. Misconversion can happen. -mapFieldType can be used to control field type conversion.
ERROR 6: Can't create fields of type IntegerList on shapefile layers.
Warning 1: The output driver does not natively support StringList type for field QUASOU. Misconversion can happen. -mapFieldType can be used to control field type conversion.
ERROR 6: Can't create fields of type StringList on shapefile layers.
Warning 1: The output driver does not natively support StringList type for field STATUS. Misconversion can happen. -mapFieldType can be used to control field type conversion.
ERROR 6: Can't create fields of type StringList on shapefile layers.
Warning 1: The output driver does not natively support StringList type for field TECSOU. Misconversion can happen. -mapFieldType can be used to control field type conversion.
ERROR 6: Can't create fields of type StringList on shapefile layers.
Gdal version:
GDAL 3.3.1, released 2021/06/28
ANy advice? I forgot to do something?
-splitlistfields
and split such attributes into many regular string fields.-splitlistfields
option quiet helps. I mean errors gone, but ofc the option creates more fields in output file than in input file.LIST_AS_STRING=ON
but a still got same errors when i ranogr2ogr
without-splitlistfields
. So i even don't understand thatOGR_S57_OPTIONS
variable works or not. Is there any way to check it?COLOR=1 COLOR=4
. With shapefile there are two options: add both values into oneCOLOR=1,4
or split the attributeCOLOR_1=1 COLOR_2=4
. Convert data into for example GML if you want to preserve list attributes.