chorogrid icon indicating copy to clipboard operation
chorogrid copied to clipboard

How to add more countries

Open martgnz opened this issue 8 years ago • 1 comments

How can we add more countries? With a SVG file?

martgnz avatar Aug 19 '15 07:08 martgnz

If you want a realistic map, you must start with an SVG file and extract the PATH attributes. If you want a grid, you can just specify the x and y coordinates of the grid (if it's hexes, every other row is offset 1/2 a space to the right).

Once you have the PATHs or grid attributes, all you need to do is make a CSV file: for PATHs, it will have two columns, abbreviation and path, for grids it will have three columns, abbreviation, x coordinate and y coordinate. You can name the columns whatever you want, because you specify them when you instantiate the Chorogrid class. The csv goes in the chorogrid/databases folder.

Prooffreader avatar Aug 19 '15 10:08 Prooffreader