A project to determine which countries are most circular. (UNFINISHED)
The "most-circular-country" project is an unfinished project that aims to determine the circularity of countries. It was created as a challenge from a friend and uses a simple logic to measure circularity.
- Download the project files.
- Unzip the maps.
- Change the
shp_path
variable in the code to point to your own path where the shapefile is located.
Run the code, and the results will highlight which countries are most circular.
The project uses a simple logic to measure circularity:
- Around every country, create n amount of points (the higher the more accurate).
- Get the distance of each point from the middle of the country.
- Calculate the standard deviation of these distances. A perfect circle would have no standard deviation.
This project is unfinished and currently open to contributions.
I have started this small project because my friend Ahmed Samir challenged me.
This project is licensed under the MIT License - see the LICENSE file for details.