On the flip side - who cares? It's just a question of shunting data around - ok someone could add a format specifier somewhere and it would be neater. But there's no particular harm in it either.
The lat/lon floating point delusion
41–50 of 154 posts
Re: The lat/lon floating point delusion
#42Did the author think about the implementation? If we assign semantic meaning to the number of decimal points, now we also need to store the number of significant digits side by side with the actual number. We shouldn't round off internally because we might use it in as an intermediate result in a calculation.
I would consider storing (as part of the database) or defining (as part of the display code) the number of significant digits for coordinates part of good GIS design.
Re: The lat/lon floating point delusion
#43It doesn't matter how precise the value is, as long as it's precise enough for your use-case and as long as machines are handling it. If the value is displayed in a UI and it's rounded off to a reasonable decimal there, I don't see the point why you would get so worked up about it. I'm sure my thermostat internal temperature representation is way more precise than the 0.5 degrees precision it's showing on the display…
Re: The lat/lon floating point delusion
#44Does anyone here know what's the actual precision that we can get by the available equipment?
Re: The lat/lon floating point delusion
#45Yes, why don't people spend their time doing the extra work to figure out the exact number of meaningful digits in their measurements when the defaults work just fine for their non-scientific, non-metrological purposes? A mystery for the ages.
Re: The lat/lon floating point delusion
#46The author also ignores the fact that the distance associated with a degree of longitude changes dramatically as you go from the equator (69m/111km) to the poles (0) - roughly as a cosine. So the number of decimal places of longitude should shrink as you get further from the equator. https://www.thoughtco.com/degree-of-latitude-and-longitude-d... "At 40 degrees north or south, the distance between a degree of longitu…
Err, no, that fact is in the article.
It is described in the linked wikipedia article, though: https://en.wikipedia.org/wiki/Decimal_degrees, so it isn't completely ignored by the author.
Re: The lat/lon floating point delusion
#47Does anyone here know what's the actual precision that we can get by the available equipment?
Survey-grade GPS (using CORS and WAAS correction) using RTK will give you accuracy to ~10 cm within a few seconds. You can get that down to several millimetres if you can tolerate post-processing several hours worth of static data.
Re: The lat/lon floating point delusion
#48Perhaps the Google Earth image is "wrong". Stitching aerial and satellite images together and aligning every pixel to the exact geo-location isn't as simple as it sounds -- especially given that the ground shifts over time.
Re: The lat/lon floating point delusion
#49> Popping those long coordinates into Google Earth, it looks like the georeferencing puts the point somewhere on ILI's back wall Perhaps the Google Earth image is "wrong". Stitching aerial and satellite images together and aligning every pixel to the exact geo-location isn't as simple as it sounds -- especially given that the ground shifts over time.
Re: The lat/lon floating point delusion
#50Yes, why don't people spend their time doing the extra work to figure out the exact number of meaningful digits in their measurements when the defaults work just fine for their non-scientific, non-metrological purposes? A mystery for the ages.