Javascript jVectormap:尝试转换映射时元组索引超出范围

Javascript jVectormap:尝试转换映射时元组索引超出范围,javascript,python,shapefile,jvectormap,Javascript,Python,Shapefile,Jvectormap,我正试图通过转换此形状文件来创建芬兰的jVectormap地图文件: 我已经安装了Python和模块,但在尝试此命令时: /usr/local/bin/python2.7 converter/converter.py \ /<path>/ne_110m_admin_1_states_provinces_shp.dbf \ /<path>/finland.js \ --width 1000 \ --country_name_index 8

我正试图通过转换此形状文件来创建芬兰的jVectormap地图文件:

我已经安装了Python和模块,但在尝试此命令时:

/usr/local/bin/python2.7 converter/converter.py \
    /<path>/ne_110m_admin_1_states_provinces_shp.dbf \
    /<path>/finland.js \
    --width 1000 \
    --country_name_index 8 \
    --country_code_index 0 \
    --longitude0 26.00 \
    --where "ISO_A2='FI'" \
    --name data_fin \
    --language en

我只得到文件的摘要。

您使用的是哪个版本的convert.py? 最新的1.2.2似乎有问题。你可以在这里找到很多jvectormap
包括芬兰!该软件包还包括一个较旧的convert.py 1.1.1,它运行良好。

这与其说是答案,不如说是评论。
Traceback (most recent call last):
File "converter/converter.py", line 296, in <module>
converter.convert(args['output_file'])
File "converter/converter.py", line 167, in convert
insetBbox = self.renderMapInset(codes, 0, 0, self.width)
File "converter/converter.py", line 194, in renderMapInset
scale = (bbox[2]-bbox[0]) / width
IndexError: tuple index out of range
ogrinfo ne_110m_admin_1_states_provinces_shp.shp ne_110m_admin_1_states_provinces_shp -where "ISO_A2='FI'"