<div dir="ltr">Regarding naming: we already have duality of ST_Simplify <-> ST_SimplifyPreserveTopology, so if we want to follow it as an agreement, it has to be ST_SnapToGridPreserveTopology. If that looks wrong then we may want to consider the exposure of this function together with naming ST_SimplifyPreserveTopology.<div><br></div><div>Another recent precision reducer we have is ST_QuantizeCoordinates. Can GEOS be bent to provide the same behavior on a non-even grid with last bits set to 0 with guarantees on validity of output?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 11, 2020 at 7:27 PM Martin Davis <<a href="mailto:mtnclimb@gmail.com">mtnclimb@gmail.com</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"><div dir="ltr"><div>I am neutral about encoding precision in the data or in the schema.  As Darafei points out it raises a raft of tricky questions about what should be made precise, the semantics of spatial predicates, and what to do about mixed precision. It's a far bigger change than what Paul is asking about, since it requires many operations to be enhanced to support precise output.</div><div><br></div><div>Providing ST_PrecisionReduce may or may not be a small step in that direction.  But it lets users and the development team get some experience with how and when to enforce precision. </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 11, 2020 at 2:06 AM Sandro Santilli <<a href="mailto:strk@kbt.io" target="_blank">strk@kbt.io</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">I think we should add a precision field to the Geometry type<br>
so that once precision is set on a geometry it sticks and can<br>
be passed around, in particular to GEOS functions for retaining<br>
the precision in output (basically using fixed precision all<br>
the way).<br></blockquote></div></div>
_______________________________________________<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>