by gciruelos · 10y ago · 0 comments
That point is obtained by computing the midpoint of two random points from the border of the country.
I know it is not the best (if the country is not convex, then the midpoint isn't necessarily inside it), but it works. The code is at the end of the post, if you want to take a look at it.
Thanks for pointing that out though, I'm going to add this to the post.
Edit: you were right, it wasn't even the Mercator projection, it was the equirectangular projection. Thank you!
No comments yet.