en.osm.town is one of the many independent Mastodon servers you can use to participate in the fediverse.
An independent, community of OpenStreetMap people on the Fediverse/Mastodon. Funding graciously provided by the OpenStreetMap Foundation.

Server stats:

267
active users

Eugene Alvin Villar 🇵🇭

🗺️ Day 8️⃣: 🌍

I decided to try something new and create my very first map! The two variables I’ve mapped for 52 African countries are the 2023 scores by and the 2022 by the UN Development Programme.

Unfortunately São Tomé and Príncipe didn’t have a WPFI score while there’s no HDI for Somalia. Of course Western Sahara had no data too.

1/4

It was a trip creating this map as I didn’t use any off-the-shelf GIS tools like QGIS or R for this and just relied on my coding and graphic design skills.

I obtained the data for the WPFI¹ and HDI² scores via Wikipedia because it was quite easy to just copy the HTML tables and paste them into Calc and then use my spreadsheet-fu to match the data and generate JSON.

¹ en.wikipedia.org/wiki/List_of_
² en.wikipedia.org/wiki/World_Pr

2/4

en.wikipedia.orgList of countries by Human Development Index - Wikipedia

And since I already had some code³ to render country polygons from I figured it would be simple to just add more code to map the countries’ scores to the correct colors.

I created a function that takes a country’s 2 scores and return a CSS RGB string representing the bivariate color. For this I used the brewer.seqseq2 color scheme⁴ but interpolated from 3×3 classes into 5×5.

³ Cahill–Concialdi projection renderer: github.com/seav/cahill-concial
kwstat.github.io/pals/referenc

3/4

GitHubGitHub - seav/cahill-concialdi: A JavaScript implementation of the Cahill–Concialdi Bat map projectionA JavaScript implementation of the Cahill–Concialdi Bat map projection - seav/cahill-concialdi

I also added some code to render the bivariate color legend as a diamond.

Since the map was rendered in the browser as SVG, I exported the vector image file and opened it in (note: I have no opinion on the petition⁵ to rename the app) to do some post-render cleaning up and add texts and labels. (I actually could have just coded the texts in JS but I was already in way too deep. 😝)

theregister.com/2019/08/28/gim

4/4

The Register · GIMP open source image editor forked to fix 'problematic' nameBy Tim Anderson