You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't figure out how to make the remaining continent maps (Asia, S. America, Africa, N. America) like the Europe sample (http://jvectormap.com/maps/world/europe/). It seems to me that the arguments
--country_name_index
--country_code_index
are required, but, they don't make sense for maps containing several countries (right?).
yields:
ERROR 1: No such field: '1'
ERROR 1: No such field: '0'
Traceback (most recent call last):
File "converter.py", line 295, in
converter.convert(args['output_file'])
File "converter.py", line 143, in convert
self.loadData()
File "converter.py", line 88, in loadData
self.loadDataSource( sourceConfig )
File "converter.py", line 118, in loadDataSource
name = feature.GetFieldAsString(sourceConfig.get('country_name_index')).decode(sourceConfig.get('input_file_encoding'))
AttributeError: 'NoneType' object has no attribute 'decode'
It looks to me like I have the 'where' syntax correct -- this works:
$ ogrinfo -al natural-earth-vector/110m_cultural/ne_110m_admin_0_countries_lakes.shp -where "continent='Africa'"
The text was updated successfully, but these errors were encountered:
I can't figure out how to make the remaining continent maps (Asia, S. America, Africa, N. America) like the Europe sample (http://jvectormap.com/maps/world/europe/). It seems to me that the arguments
--country_name_index
--country_code_index
are required, but, they don't make sense for maps containing several countries (right?).
$ python converter.py
natural-earth-vector/110m_cultural/ne_110m_admin_0_countries_lakes.shp
africamap.js
--width 900
--projection mill
--where "continent='Africa'"
yields:
ERROR 1: No such field: '1'
ERROR 1: No such field: '0'
Traceback (most recent call last):
File "converter.py", line 295, in
converter.convert(args['output_file'])
File "converter.py", line 143, in convert
self.loadData()
File "converter.py", line 88, in loadData
self.loadDataSource( sourceConfig )
File "converter.py", line 118, in loadDataSource
name = feature.GetFieldAsString(sourceConfig.get('country_name_index')).decode(sourceConfig.get('input_file_encoding'))
AttributeError: 'NoneType' object has no attribute 'decode'
It looks to me like I have the 'where' syntax correct -- this works:
$ ogrinfo -al natural-earth-vector/110m_cultural/ne_110m_admin_0_countries_lakes.shp -where "continent='Africa'"
The text was updated successfully, but these errors were encountered: