Falsehoods Programmers Believe About Map Coordinates
engineering.kablamo.com.au
engineering.kablamo.com.au
If you don't know the datum of a lat long, you only know the location to within about a kilometer.
Datum matters. And yes, WGS84 is fairly common, but you will still very routinely come across lat/long or projected coordinates in other datums. NAD27 is the one that you'll encounter the most in the US, and it's about a 300 meter shift compared to WGS84 or NAD83. Others exist too and are frequently used.
Don't just record lat/long.
Spherical kmeans is much simpler. A simple cos distance between vectors.
Then one day, they moved the official location of the city[0] and, as far as I can tell, the problem went away overnight.
[0] https://www.smh.com.au/national/nsw-and-victoria-just-jumped...
Plate movement is mentioned in the original article, but more detail on how Australia is dealing with "drifting at about seven centimetres a year to the northeast" here [2017]: https://theconversation.com/australia-on-the-move-how-gps-ke...
https://kevin.deldycke.com/2016/12/falsehoods-programmers-be...
A big gotcha with some of these systems, in addition to the datum, is the units of measure. Some are in metres while many in the US use ft.
This has bitten me so many times, that I just default to named structs instead of pairs
> In the Mercator projection, the Earth - which, in reality, is an oblate spheroid - is projected as a simple cylinder. This means that "parallel" longitude lines meet at the poles, so the distance between degrees of longitude are much shorter as they get closer to the poles than they are at the equator (~111 km).
Latitude and longitude are defined on the globe, not by any particular projection, and the fact that longitude lines meet at the poles is true on the globe. A projection may or may not make them appear to be parallel. No projection is responsible for, or will change, the fact that a degree of longitude as an arc on the Earth's surface varies in length from (Earth's equatorial circumference)/360 at the equator to 0 at the poles.
The situation is even a bit worse in marine or air navigation because the nautical mile is (or more accurately was) defined by a minute of latitude, which is nearly consistent across the globe and creates the temptation to measure along longitude the same way. In reality nautical and aviation charts have to use a specific conical projection to keep this naive way of measuring distances approximately accurate.
> because the nautical mile is (or more accurately was) defined by a minute of latitude
Cool, I've heard that in the past but somehow always forget about it!
You have: (arcminute/circle) earthradius * two pi
You want: nauticalmile
* 1.0006759
/ 0.9993246
Thanks!I think a Github repo or YouTube Playlist of “Falsehoods Programers Believe About______” would be very entertaining and informative.
Does such a resource exist?
Mostly kidding but not entirely.
As far as I know, that was the first one.
I believe that's the Ur "Falsehoods Programmers Believe About" article. Sort of like Dijkstra's "Go To Statement Considered Harmful" is the progenitor of all the following "Considered Harmful" titles.
https://infiniteundo.com/post/25326999628/falsehoods-program...
There are a great many problems with trying to depict a three-dimensional world in 2D, which is what maps do. There are many different projections that get used for different reasons and it depends in part on which part of the earth you are trying to depict, how much of it you are trying to depict and what information you are trying to effectively convey.
GIS is fascinating stuff and it's just sad that I never got to work in it after getting my certificate in GIS.
Also determined that 0,0 is located on the equator off africa south of england (kinda obvious in hindsite).. Which means you probably should make sure all your locations are geotagged before including on a map...
For some reason I remembered this point being somebody's house that got a lot of unwanted visitors due to the coincidence. Was there something similar like that?
So you get something that actually resolves to "US", you draw a circle centered on the US, covering most of the US, instead of a point marker in the middle of the US.