Format of data file
To use Mapeteria, you need to give data in the form of a CSV (comma-separated) file that specify the territory
and the numeric value corresponding to that territory.
Each territory's information should be on one line, with fields as follows:
- The first field should be the ISO 3166-1 alpha-2 (i.e. two letter) country code.
Right now, that means "us" for the USA, "ca" for Canada, or
"fr" for France.
- The second field, you need to use the ISO 3166-2 code for the state/province.
Fortunately, that's not as intimidating as it sounds: in the US and Canada
it is just the postal codes. For French départements, use the two-digit
number for the department.
- The last field should be an integer or fixed-point number corresponding to some
data value (for example, the median age of the state or province).
Note that you can have quote marks if you want, but you don't need them.
Countries and provinces are case-insensitive.
Note also that European number/separator format is recognized.
Example
It should look something like this:
us,ca,1734.8
us,or,324.2
us,wa,442.3
us,in,759.2
us,il,533.5
.
.
.
(etc)
or
"us","ca",1734.8
"us","or",324.2
"us","wa",442.3
"us","in",759.2
"us","il",533.5
.
.
.
(etc)
or
"fr";"01";1 734,8
"fr";"25";324,2
"fr";"54";442,3
"fr";"04";759,2
"fr";"08";533,5
.
.
.
(etc)