首页 > 其他分享 >geotools读取shp文件中文乱码???

geotools读取shp文件中文乱码???

时间:2023-02-02 17:24:17浏览次数:66  
标签:shp 文件 geotools 读取 setStringCharset 乱码

在读取shp文件之前,先要手动调用一下ShapefileDataStore的setStringCharset方法即可 dataStore.setStringCharset(Charset.forName("UTF-8"));

参考:https://www.osgeo.cn/post/6067g

标签:shp,文件,geotools,读取,setStringCharset,乱码
From: https://www.cnblogs.com/2008nmj/p/17086717.html

相关文章