Open uscivics opened 4 years ago
Your second config file should apply to processor.py. According to code : https://github.com/bjornd/jvectormap/blob/master/converter/converter.py#L54 The config file should be like this if you want to use converter.py:
{
"input_file": "path_to_shp_file",
"output_file": "the js file path/name generated by converter.py",
"code_field": "ISO_A2",
"name_field": "NAME",
"input_file_encoding": "UTF-8"
}
This works for me. If you need more options, I suggest you review the converter.py code.
I attempted using the converter on some US Census Tiger Line shape files. I was using python 2.7, 3.6, & 3.7 with Anaconda.
I'm running OS X 10.15.
On python 3.7 there were some syntax errors print "message" vs. print("message").
My most recent progress gets me here:
Here is my configuration file:
If I add []'s around my config file like this:
My result is as follows:
This looks like a great tool, if I could only figure out the right configuration for the environment to run it.