<div dir="ltr">I would like to get this exposed. I also would like it to be exposed in a way that will get the SQL idiomatic.<br><div><br></div><div>What would be the usage scenario for precision values in the new GEOS?<br><br></div><div>I've recently seen a closed reimplementation of the concept of precision inside to manage some data. They generally had a field next to geometry, epsilon, and wrappers around all spatial relationship testers that buffered the geometries before checking relationships. It got wild when both geometries were passed with different precision. </div><div><br></div><div>What happens with GEOS overlays when two geoms are passed with different precision, how does it work?</div><div><br></div><div>For other postgres types, numeric has precision encoded into the typmod. It kind of makes sense for geometry too: you will get a whole table of geometries snapped to the same precision and it will be snapped in runtime, with you running the normal ST_Intersects/union/ on the geometries.</div><div><br></div><div>We have a tradition of encoding things we store in typmod into geometry itself. Shall we put the precision on gserialized too?</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 11, 2020 at 2:12 AM Paul Ramsey <<a href="mailto:pramsey@cleverelephant.ca">pramsey@cleverelephant.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">One of the "new" GEOS 3.9 features is that<br>
<br>
GEOSGeom_setPrecision<br>
<br>
actually backs onto the OverlayNG precision reducer, so you can get valid precision reduced geometries out of it.<br>
<br>
Currently, nothing in PostGIS exposes this functionality (because prior to this the precision reducer in GEOS wasn't really any smarter than our own snap to grid). <br>
<br>
Should we be exposing this?<br>
<br>
Under what name?<br>
<br>
P<br>
_______________________________________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org" target="_blank">postgis-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-devel</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Darafei "Komяpa" Praliaskouski<br>OSM BY Team - <a href="http://openstreetmap.by/" target="_blank">http://openstreetmap.by/</a><br></div></div>