<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">аў, 7 мая 2019, 4:17 PM карыстальнік Paul Ramsey <<a href="mailto:pramsey@cleverelephant.ca">pramsey@cleverelephant.ca</a>> напісаў:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">This blog post reminded me:<div><br></div><div><a href="https://rapidlasso.com/2019/05/06/how-many-decimal-digits-for-storing-longitude-latitude/" target="_blank" rel="noreferrer">https://rapidlasso.com/2019/05/06/how-many-decimal-digits-for-storing-longitude-latitude/</a></div><div><br></div><div>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).</div><div><br></div><div>Thoughts?</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">There are number serialization libraries that choose number of digits adaptively. </div><div dir="auto"><br></div><div dir="auto">We had issues with 6 decimal digits serialization - vector roads visibly don't match their rendered versions, so at least 7 would be my vote. I believe 8 is safe, as it aligns with something called SQLMM_EPSILON of 1e-8 in the code. </div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><div><br></div><div>P</div></div>_______________________________________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org" target="_blank" rel="noreferrer">postgis-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-devel" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-devel</a></blockquote></div></div></div>