anki-geo / ultimate-geography

Geography flashcard deck for Anki
https://ankiweb.net/shared/info/2109889812
Other
800 stars 79 forks source link

Vectorized ocean maps #136

Closed NathanaelRea closed 4 years ago

NathanaelRea commented 5 years ago

I noticed that most ocean and sea maps were low quality, and wanted to see if I could help. The oceanic maps seem to already be on Wikipedia except Polynesia, and so I added them to my fork, which your can see here (still need to adjust colors for consistency): https://github.com/axelboc/anki-ultimate-geography/compare/master...OldOxygen:vector-maps

I would like to vector all the other ocean maps, but had some questions.

axelboc commented 5 years ago

Hi there! 👋 Thanks for offering to help out. 🥇 Sorry I took so long to get back to you.

The maps of the sub-regions of Oceania you found on Wikimedia and tweaked to remove labels are amazing, thank you! If you open a PR that I can modify, I'll do the necessary work to convert them to 500px-wide PNGs, optimise them with TinyPNG and add them to the sources.csv document (unless you'd like to do all this yourself! 😄).


The reason most maps are in PNG format is for file size. I want to keep the deck as small as possible so it can be synced quickly, and stored on low-end smartphones. The limit for SVG files is currently 50 kB after SVGO optimisation. Anything below this has to be converted to PNG and then optimised again. For this reason, vectorization is not an end goal in itself for this deck. Vecotrization is, however, a necessary step to achieve visual consistency between all of the maps. Before you jump into it, though, let me fill you in on where we're up to.

The current maps of oceans, seas and water bodies (gulf, bays, lakes, etc.) suffer from two major problems: quality and consistency.

All in all, updating the maps of the water bodies is going to take a whole lot of work... So you're help is more than welcome!! 😊 If I didn't scare you away and you want to get your hands dirty 🙌, I'd say a good way to start would be to pick a well-delimited water body (e.g. like the Black Sea). Once you've picked one, find the SVG source file of an existing 16/9 country locator map at the same zoom level as the sea (check out sources.csv), modify it to put the water body in the center and to highlight it, and then show us the result!

aplaice commented 5 years ago

IHO

Some types of water bodies, like gulfs, might not be easy to delimit, and the borders of many seas are highly contested.

In terms of defining the exact extent of the water bodies, I think that the best source would be the IHO's (International Hydrographic Organisation's) 1953 Limits of Oceans and Seas, 3rd edition. It seems to be what Wikipedia uses for the purpose (for example, see the articles on the Norwegian sea or the Celtic sea). There's a PDF of the report on the IHO's own website, an OCRed (but, other than an additional final 3 pages, identical) version here and a representation of the data in machine-readable form here. Alternatively, the 4th edition draft might be used instead — I have no idea how, or whether it differs significantly from the 3rd edition.

There's a global SVG map purporting to represent the IHO data on the commons here, but unfortunately, while it's thorough and detailed, it doesn't really fit our conventions, and it seems to have a couple of errors (for instance, in it, the Celtic Sea doesn't have a western border, even though the IHO does specify one, and the eastern border also doesn't seem right). I can't find anything that's particularly better, though.

Question marks?

In terms of conventions and styles for the UG maps, currently we have two main conventions: having a question mark within some of the more "open" seas, and a highlighting of the extent of the water body, for some of the more "enclosed" ones.

Do we ideally want to switch to the latter style for all the water body maps, or is the current split desirable? (i.e. for the maps that currently have a question mark placed within the sea, rather than a highlight of the sea, do we want to (aim to) replace them with maps with a question mark, or ones with the extent of the sea highlighted?)

Prior work

As I mentioned in the 137, there are two existing Anki decks: "Rivers, Lakes, Seas, and Oceans", and "International waters: Ocean, Sea etc.", but while quite comprehensive, none of their maps fit our conventions, and in the case of the second deck, the license of the images isn't specified anywhere.

axelboc commented 5 years ago

Do we ideally want to switch to the latter style for all the water body maps, or is the current split desirable?

My vote goes to highlighting. 🔆