ValueError:没有JSON对象可以在python中解码
我按照post上的说明将形状文件转换为jvector地图,我已经从这个网站下载了形状文件。
以下是我的bat文件的内容。
python converter.py ^ New_South_Wales.shp ^ test-map.js ^ --width 400 ^ --where "ISO_3166_2 = 'AU-' and code_hasc!=''" ^ --country_name_index 12 ^ --country_code_index 18 ^ --minimal_area 4000000 ^ --buffer_distance -0.5 ^ --simplify_tolerance 10000 ^ --longitude0 25.2744 ^ --name nsw
我的文件夹包含以下文件
执行bat文件时,我在命令提示符下遇到以下错误。
D:\POC\research\converter>makemap D:\POC\research\converter>python converter.py New_South_Wales.shp test-map.js - -width 400 --where "ISO_3166_2 = 'AU-' and code_hasc!=''" --country_name_index 1 2 --country_code_index 18 --minimal_area 4000000 --buffer_distance -0.5 --simpli fy_tolerance 10000 --longitude0 25.2744 --name nsw Traceback (most recent call last): File "converter.py", line 296, in paramsJson = json.loads(paramsJson) File "C:\OSGEO4~1\apps\Python27\lib\json\__init__.py", line 338, in loads return _default_decoder.decode(s) File "C:\OSGEO4~1\apps\Python27\lib\json\decoder.py", line 365, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\OSGEO4~1\apps\Python27\lib\json\decoder.py", line 383, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded D:\POC\research\converter>
任何人都可以帮我解决这个问题吗?