(미국 + 캐나다)의지도를 각 주 /도와 함께 찾고 있습니다. 미국과 캐나다 jvectormap
이
내가 지금까지 한 일이다 :- 다운로드 한 jVectorMap 1.2.2 here에서;
- this을 읽은 후 GDAL 및 Shapely를 설치했습니다.
10m Admin 1
패키지 다운로드 Natural Earth에서;
보다가, this 스레드에 따르면, 내가 사용 다음 무엇을해야 할 수 있습니다 : I 변환하기 위해 노력하고있어 이후
python converter.py --width 900 --country_name_index 12 --country_code_index 18 --longitude0 -100 --where="iso_a2 = 'CA' OR iso_a2 = 'US'" --projection lcc --name us_ca ne_10m_admin_1_states_provinces_shp/ne_10m_admin_1_states_provinces_shp.shp ../jquery-jvectormap-us-ca-lcc-en.js
--country_name_index 12 --country_code_index 18
부분은 나에게 어떤 이해가되지 않는 경우 2 개국. 실행 코드를 제시 한 후
어쨌든, 내가 얻을 : 나는 설치에 뭔가를 놓친하지 않는 한
Traceback (most recent call last):
File "converter.py", line 296, in <module>
converter.convert(args['output_file'])
File "converter.py", line 144, in convert
self.loadData()
File "converter.py", line 89, in loadData
self.loadDataSource(sourceConfig)
File "converter.py", line 130, in loadDataSource
shapelyGeometry = shapely.wkb.loads(geometry.ExportToWkb())
AttributeError: 'module' object has no attribute 'wkb'
나는이 정말 이상한 찾을 수 있습니다. import shapely.wkb
을 converter.py
에 추가 한 후 State
및 Yukon
의 이름이 Alaska
이고 Territory
인 것으로 나타났습니다.
무엇이 여기에 있습니까?
감사합니다.
같은지도를 찾으 신 적이 있습니까? github에 입을 좋은가? – BillPull