TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

What is the roundest country?

120 pointsby gciruelosalmost 9 years ago

17 comments

leni536almost 9 years ago
&gt; We cannot use those (xi,yi)(xi,yi) directly, because they come from a Mercator projection of the earth, thus they are distorted. I had to apply a transformation to them in order to get coordinates that aren’t distorted. In order to do that I used the pyproj library.<p>Nitpick: you apply a transformation where they are <i>less</i> distorted. There is no &quot;distorsionless&quot; mapping from R^2-&gt;sphere. A more accurate approach would be to use spherical geometry to calculate the actual areas, but I doubt that it would change the values too much though.<p>Also I would be curious what was the exact projection you used and how you choose the parameters for each country.
评论 #12178930 未加载
评论 #12179041 未加载
derefralmost 9 years ago
Neither this, nor the post it&#x27;s inspired by, is as interesting to me as a question with a much simpler-to-calculate answer: what&#x27;s the <i>smoothest</i> (i.e. lowest fractal-dimension, smallest surface-area-to-volume ratio) country?<p>At the top would be some country with artificially-defined borders that have not since been reshaped by war or treaty. At the bottom would likely be the most &quot;historied&quot; country.<p>(Then again, at the bottom might just be Canada or Russia, since they have so much jagged coast to count. Perhaps, for the parts of a country that abut international waters instead of another country, we could use the political boundaries of the country&#x27;s <i>coastal waters</i> surrounding that coast, rather than the boundaries of its landmass.)
评论 #12179442 未加载
评论 #12177579 未加载
评论 #12179456 未加载
cpitmanalmost 9 years ago
For some reason Egypt has shown up as the most rectangular and now one of the most round countries. Goes back to how the average person&#x27;s definition of these terms isn&#x27;t capture by the metric. When I say a country is &quot;rectangular&quot; I&#x27;m thinking about straight lines and sharp corners. &quot;Round&quot; I guess should be the absence of corners?
评论 #12179673 未加载
评论 #12177949 未加载
Stratoscopealmost 9 years ago
Watch out for over-generalization, especially when the thing you&#x27;re generalizing is a geographic shape.<p>(In GIS, &quot;generalization&quot; is what you might also call &quot;simplification&quot; - reducing the vertex count of the borders so you have less data to deal with.)<p>Take Scarborough Reef (aka Scarborough Shoal) for example: #6 on the list with a Roundness of 0.9. It only has four vertices, a simple squarish quadrilateral. Is that what it is really shaped like? You be the judge:<p><a href="https:&#x2F;&#x2F;commons.wikimedia.org&#x2F;wiki&#x2F;File:Scarborough_Shoal_Landsat.jpg" rel="nofollow">https:&#x2F;&#x2F;commons.wikimedia.org&#x2F;wiki&#x2F;File:Scarborough_Shoal_La...</a>
评论 #12178408 未加载
wingerlangalmost 9 years ago
I wonder if they will get the same result if they plot the countries as shapes in a physics engine and roll them down the hill.
评论 #12179687 未加载
flexiealmost 9 years ago
I don&#x27;t recognize France on spot 156. As for United States on spot 121, Netherlands on spot 93, Denmark on spot 97 etc. it looks like they have included all overseas territories. But it does look weird.
评论 #12179436 未加载
评论 #12179401 未加载
评论 #12179965 未加载
peterburkimsheralmost 9 years ago
So, Egypt is both round (20) and rectangular (1)?<p>Compare: <a href="http:&#x2F;&#x2F;pappubahry.com&#x2F;misc&#x2F;rectangles&#x2F;" rel="nofollow">http:&#x2F;&#x2F;pappubahry.com&#x2F;misc&#x2F;rectangles&#x2F;</a>
评论 #12178078 未加载
jnevillalmost 9 years ago
What happened to France?
评论 #12177288 未加载
评论 #12179035 未加载
andrepdalmost 9 years ago
LaTeX nitpick: use \text for function names, like \text{roundness}, or else you have <i>roundness</i> which means <i>r</i> times <i>o</i> times <i>u</i>...
zwiebackalmost 9 years ago
Nice writeup but it seems like there should be a closed analytical solution vs. an iterative one.
zydecoalmost 9 years ago
It seems a bit counter-intuitive that Vatican is 4th roundest, and 2nd rectangularest
评论 #12179352 未加载
skeltoacalmost 9 years ago
Nauru is the 2nd roundest (0.923) and the 10th most rectangular (0.917). <a href="http:&#x2F;&#x2F;pappubahry.com&#x2F;misc&#x2F;rectangles&#x2F;" rel="nofollow">http:&#x2F;&#x2F;pappubahry.com&#x2F;misc&#x2F;rectangles&#x2F;</a>
smb06almost 9 years ago
Swaziland is a good candidate for the &quot;roundest country&quot;. Macedonia and Qatar wouldn&#x27;t be too far behind either.
评论 #12177570 未加载
评论 #12177416 未加载
sshasanalmost 9 years ago
I had no idea what or where Serranilla Bank (#70) was. Something new to learn everyday. :)
hathymalmost 9 years ago
Why do France looks like little dots???
评论 #12179228 未加载
jm173almost 9 years ago
Nauru is the 2nd roundest I know.
thegauravkumaralmost 9 years ago
I dont know.