gdal读取ShapeFile文件,发生如下错误:
Warning 1: One or several characters couldn't be converted correctly from UTF-8 to ISO-8859-1. This warning will not be emitted anymore.
解决方法:通过设置编码规则SHAPE_ENCODING=UTF-8,也可以设置为空,设置为空时可自动识别编码,GBK和UTF-8都可以识别
gdal.SetConfigOption("SHAPE_ENCODING", "")