Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add more countries #6

Open
martgnz opened this issue Aug 19, 2015 · 1 comment
Open

How to add more countries #6

martgnz opened this issue Aug 19, 2015 · 1 comment

Comments

@martgnz
Copy link

martgnz commented Aug 19, 2015

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

@Prooffreader
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants