[postgis-devel] GeoJSON Precision

Paul Ramsey pramsey at cleverelephant.ca
Tue May 7 13:17:15 PDT 2019


This blog post reminded me:

https://rapidlasso.com/2019/05/06/how-many-decimal-digits-for-storing-longitude-latitude/ <https://rapidlasso.com/2019/05/06/how-many-decimal-digits-for-storing-longitude-latitude/>

GeoJSON generation uses DBL_DIG as the number of decimal places, which is… a lot? 15 or 16 depending on your platform. I wonder if maybe we should crank that down to 8 as the default and let people crank it *up* as desired rather than emitting nanometer precision and expecting people to crank it *down* (they don’t).

Thoughts?

P
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20190507/94411643/attachment.html>


More information about the postgis-devel mailing list