Live data from Hacker News

The lat/lon floating point delusion

datafix.com.au

121–130 of 154 posts

Re: The lat/lon floating point delusion

#121
post #79

In contrast to his 4-digits-are-fine notions, let me offer a counterexample: http://scissor.com/transient/destination_heatmap/ I am working on a Twitter bot called @sfships, which monitors the comings and goings of large ships in the San Francisco Bay: https://twitter.com/sfships As part of that, I generated the above map from AIS data. [1] It's basically where ships stop. If you zoom in on the San Francisco waterfro…

I used to have a job where I analyzed global ship tracking data (AIS and other less-open (i.e. more classified) data streams) for law enforcement and environmental conservation purposes, and learned one thing: man is AIS data a bitch. This is especially true when you're dealing with potential bad actors who can spoof their transmissions, combined with incredibly poor vessel metadata databases and strange satellite AI…

Why do bad actors spoof transmissions? Smuggling?

Re: The lat/lon floating point delusion

#122
post #62

Earlier quoted context omitted.

Here in the frozen north, newpapers^H^H^H^H^H^H sites insert metric conversions everywhere. “I must have lost ten pounds [4.5359237 kg] on that run!”

I absolutely love it when I read something like "The object was nearly 1 foot (30.48 cm) long."

“I wouldn’t touch that with a 3048 millimeter stick.” (A.k.a. a ten foot pole.)

Re: The lat/lon floating point delusion

#123
post #82

Earlier quoted context omitted.

No, I meant that it is an approximation or the thing in the real world that it represents. For example, consider a restraunt. Should the point be at the entrance to the building, in the middle of the building, or maybe at the door round the back where mail is delivered, or at the centroid of the parcel. In order to actually use this excessive precision you would need to know that. In the examle cases the data is not…

Then the coordinates presented should match that approximation. Anyone who has worked with plans knows that the number of significant digits presented on the plans has a meaning; it represents the margin of error. Online maps aren't respecting this, they're giving decimeter precision values on maps that are lucky if they're accurate to within meters, if not tens of meters. That's the problem.

I think that makes sense on plans that are using a proper coordinate system and have sub-metre accuracy. But removing digits further just causes confusion. You are just using the grid ref as a proxy for something else, like a circle or square which represents the error. Except in these examples it doesn't matter. No one actually needs the data to be super accurate. The coordinate length is just a style thing.

Are you working with plans that show decimal degrees at a specific precision? I am curious what domain that is.

Re: The lat/lon floating point delusion

#124
post #121

Earlier quoted context omitted.

I used to have a job where I analyzed global ship tracking data (AIS and other less-open (i.e. more classified) data streams) for law enforcement and environmental conservation purposes, and learned one thing: man is AIS data a bitch. This is especially true when you're dealing with potential bad actors who can spoof their transmissions, combined with incredibly poor vessel metadata databases and strange satellite AI…

Why do bad actors spoof transmissions? Smuggling?

I'm sure Tony knows more, but one I've heard about is fishing. It's not legal to just fish anything anywhere. Poachers have an incentive to avoid monitoring and enforcement.

Re: The lat/lon floating point delusion

#125
post #79

In contrast to his 4-digits-are-fine notions, let me offer a counterexample: http://scissor.com/transient/destination_heatmap/ I am working on a Twitter bot called @sfships, which monitors the comings and goings of large ships in the San Francisco Bay: https://twitter.com/sfships As part of that, I generated the above map from AIS data. [1] It's basically where ships stop. If you zoom in on the San Francisco waterfro…

I used to have a job where I analyzed global ship tracking data (AIS and other less-open (i.e. more classified) data streams) for law enforcement and environmental conservation purposes, and learned one thing: man is AIS data a bitch. This is especially true when you're dealing with potential bad actors who can spoof their transmissions, combined with incredibly poor vessel metadata databases and strange satellite AI…

That sounds really interesting. And if anybody is doing an AIS project, feel free to get in touch, whether or not you're using my library. I have soaked up all this esoteric knowledge that I'm eager to pass on.

Re: The lat/lon floating point delusion

#126
post #121

Earlier quoted context omitted.

I used to have a job where I analyzed global ship tracking data (AIS and other less-open (i.e. more classified) data streams) for law enforcement and environmental conservation purposes, and learned one thing: man is AIS data a bitch. This is especially true when you're dealing with potential bad actors who can spoof their transmissions, combined with incredibly poor vessel metadata databases and strange satellite AI…

Why do bad actors spoof transmissions? Smuggling?

Many reasons, and a significant percentage of all AIS transmissions are dodgy. Smuggling is just one reason.

Other common reasons include illegal fishing in protected waters, covert meetings (e.g. a couple yachts coming together in the middle of the ocean), spy ships by state actors trying to look like ordinary commercial traffic, and misrepresenting state of shipping assets for commercial leverage in contract negotiations.

Re: The lat/lon floating point delusion

#128
post #79

In contrast to his 4-digits-are-fine notions, let me offer a counterexample: http://scissor.com/transient/destination_heatmap/ I am working on a Twitter bot called @sfships, which monitors the comings and goings of large ships in the San Francisco Bay: https://twitter.com/sfships As part of that, I generated the above map from AIS data. [1] It's basically where ships stop. If you zoom in on the San Francisco waterfro…

I wonder if introducing some randomized jitter would combat the regular/grid-like placement of the dots.

Re: The lat/lon floating point delusion

#129

Earlier quoted context omitted.

> Because the value, as presented, is wrong. That's not true nor is it the problem at all. The thesis was that the values, albeit correct, have too many significant digits, which in turn reflect differences which lie somewhere between having no practical use or being absurd. > Imagine, for a moment, that someone uses these values to put up a fence. That example is very poor. Any engineer can tell you that a measureme…

> a measurement is meaningless without tolerances/margin of error Reporting a value with too many significant digits is the same as reporting an incorrect margin of error, which (arguably) makes the value wrong.

That's certainly true in a scientific paper, where the concept of significant digits is relevant and widely recognized. In a "please remove dead animal" web request, the value is only wrong if it points to the wrong location (i.e. a location that does not contain a dead animal).

Re: The lat/lon floating point delusion

#130

Earlier quoted context omitted.

I would never assume the displayed digits are significant in any non-scientific context.

People use significant digits colloquially, though with a lot less rigour. For example, If I say I'm 6 feet tall, people will probably guess that I'm between 5 ft 10 in and 6 ft 2 in. If I say I'm 5 ft 11 in, people will probably guess that I'm between 5 ft 10.5 in and 5 ft 11.5 in.

Yeah, but "-37.80467681 144.9659498" has no meaning colloquially to almost anybody, because normal humans don't think in latitude and longitude in the first place. To me, those are just values to copy and paste into a maps app to see where something is, and if it's pointing to more or less the right location, I'm happy.

They're like the physical-world equivalent of a URL; I don't honestly care if there's an unused query string parameter tacked onto the end of it or if it redirects to https or something; all I care about is that the link I clicked on gets me to the correct cat video.

Post reply on HN