The Shapes of Rivers

https://dominicroye.github.io/shapes-of-rivers/

Comments

shaaaadeNov 25, 2026, 2:34 PM
The performance of this thing makes it borderline unusable, I am not sure if it's the drawing, hit-testing, or both. A good deal of that can probably be solved by utilizing webgl for the drawing rather than the html canvas. Upload geometry once, and draw with parameters (color, et al.) as-needed
dolmenNov 25, 2026, 10:45 AM
An alternate view based on altitude (the vertical shape vs the horizontal shape presented here) would be a good complement as I expect that the altitude data is available in the same source dataset.
throwaway2037Nov 25, 2026, 10:11 AM
Of the largest in the world, I was always most impressed by the Congo River. It is special because it crosses the equator twice in a long arc. As a result, a significant part of the river is always experienceing a rainy season. Thus, there is little to no dry/low season on the river as a whole.
arethuzaNov 25, 2026, 10:51 AM
There's an interesting idea (by no means settled) that the Congo and the Amazon were once the same river- before the Atlantic opened to split South America and Africa apart and before the Andes:

https://en.wikipedia.org/wiki/List_of_river_systems_by_lengt...

sdoeringNov 25, 2026, 1:30 PM
Wow. I just learned something really interesting today. Thanks a ton.
sreanNov 25, 2026, 10:52 AM
And it is mad frigging deep. We don't even know it's max depth
rrauenzaNov 25, 2026, 5:38 PM
Reminds me of this old numberphile video, https://youtu.be/TUErNWBOkUM "Pi me a River: How the length (and sinuosity) of rivers relates to Pi - featuring Dr James Grime."
KuyawaNov 25, 2026, 1:42 PM
Frist, Kudos!

Where is search? Everybody wants to search for rivers they know, in my case Orinoco, where is it?

novaleafNov 25, 2026, 8:59 PM
there's a search sidebar on the right side, under "Filter"
zodwickNov 25, 2026, 11:33 AM
Love his work. Another one of his work that I would recommend: https://dominicroye.github.io/blog/visualize-urban-growth/in...
vismit2000Nov 25, 2026, 7:01 AM
Very cool. Looks like this uses Equal Earth projection in Maps section representing the true size of Africa! https://www.bbc.com/news/articles/ce30vp55dnlo
gsprNov 25, 2026, 8:05 AM
Very pretty! Love it :-)

Bug: seemingly does not render (or does not have?) non-ASCII characters in names. It's not the usual garbled rendering, the non-ASCII characters are simply missing in the few examples I looked up. For example, Glåma(/Glomma) is shown as "Glma".

gsprNov 25, 2026, 1:14 PM
Update: It's more interesting than that! The Rhône shows with its ô! But in addition to Glåma showing as Glma, Österdalälven shows as "sterdalven". So something is definitely amiss.
nukanseNov 25, 2026, 2:23 PM
Deciding which tributary is the main river it's kind of arbitrary, so the map should show the entire draining basin, or weight by some parameters
lefraNov 25, 2026, 9:05 AM
Neat idea, however looking at river Garonne in France, the shape is wrong in radial and drop views (comparing with the map I found on wikipedia). The map view also only highlights part of this river, the rest is labelled as "Tarn", which is wrong (the Tarn is a tributary of the Garonne in reality, map shows the reverse). Looks like the source of data is not of great quality.
ostackeNov 25, 2026, 11:00 AM
Very cool. It's interesting that the aggregate shape of all rivers is very consistent between continents, except for North America when you include unnamed rivers, which gets a very tall peak. Why might that be?
aucls1Nov 25, 2026, 1:14 PM
Throughout my time in school, I was taught that the Amazon River was the largest in the world in terms of both length and volume of water. Well, I learned something new today.

Great work, really interesting

nukanseNov 25, 2026, 2:25 PM
Rivers are fractals, so their length depends on at which scale they are compared
letharionNov 25, 2026, 10:39 AM
While it's surely just a weird coincidence of the rendering here, I find it interesting that the overall picture of all rivers form the shape of a water droplet.
nukanseNov 25, 2026, 2:30 PM
I guess that the shape can be generated by a random walk, where each walk is rotated so the extremes end vertical. I will ask an ai to generate it.

EDIT: I confirm, it generates a drop like shape, but the ai initially confused the problem with a Brownian bridge.

mablopouleNov 25, 2026, 10:47 AM
If you open the 'shape' menu, you can see that the 'drop' option is activated by default, and you can use different shapes.

It's a really cool page :D

Majestic121Nov 25, 2026, 11:10 AM
Yes, but the alternative views are map (putting the starting and ending point on a map) and radial (I assume only fixing the starting point)

So I expect the 'drop' view to fix the starting and ending point, and the drop shape is just the result of this, but not a deformation for the result to look like a drop.

fionaellieNov 25, 2026, 7:00 AM
Would be interesting to sort by flow direction.
sarmadgulzarNov 25, 2026, 9:30 AM
Yup, just recently found out that the Nile flows from south to north, and I felt like my whole life has been a lie :) For 30 years I believed it was the other way around
ThinkingGuyNov 25, 2026, 3:15 PM
Apparently "All rivers flow south" is a frighteningly common misconception. My friend's daughter was even told this by her middle school teacher.
world2vecNov 25, 2026, 10:32 AM
How could it possibly flow the other way around?!
orphereusNov 25, 2026, 9:32 AM
What? You assumed it flowed from Mediterranean sea to the mountains of Africa? Or you use a map which has north down?
sarmadgulzarNov 25, 2026, 9:37 AM
Lol, neither. Simply because I live in South Asia, I grew used to rivers flowing from north to south, as nearly all do here.
joexovNov 25, 2026, 7:22 AM
oh thats a nice idea. closest thing I found is the "from source / from mouth" toggle in the shape view, it lines all the rivers up from one end. not quite what you mean but its still fun to play with. grouping them by which ocean they end up in would be really cool to see
thrdbndndnNov 25, 2026, 7:54 AM
'Shape -> Radial' should cover what they wanted?
a3wNov 25, 2026, 12:30 PM
Aren't most rivers underwater? I guess we rarely know their shape, though.
swyxNov 25, 2026, 5:11 PM
so is there anything to learn from the suggestion that they all converge on tear shaped?
mikhailfrancoNov 27, 2026, 5:06 AM
See The Shapes of Tears.
infrahubbNov 25, 2026, 9:20 AM
really cool......