Advertisement

Basemap编码错误处理:解决方法:使用正确的编码方式

阅读量:

Basemap编码错误处理:UnicodeDecodeError: utf-8

问题描述

在导入shp文件的过程中,最常见的问题便是出现编码异常,系统随之产生如下错误提示。
中国shp文件合集

复制代码
 ploy.py 12 <module>

    
 basemap.readshapefile(shapefile = "bou1_4p",name = "china")
    
  
    
 __init__.py 2139 readshapefile
    
 for shprec in shf.shapeRecords():
    
  
    
 shapefile.py 1040 shapeRecords
    
 for rec in zip(self.shapes(), self.records())])
    
  
    
 shapefile.py 1013 records
    
 r = self.__record(oid=i)
    
  
    
 shapefile.py 988 __record
    
 value = u(value, self.encoding, self.encodingE

全部评论 (0)

还没有任何评论哟~