<div dir="ltr"><div>For polygonal geometries, yes, ST_Union with a precision is the same as precision reduction.</div><div><br></div><div>However, for lines ST_Union might change the topology more than is required/expected, since it merges and nodes lines. And for MultiPoints it will merge identical points.  In these cases ST_SnapToGrid is safer/better to use.  </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 11, 2020 at 11:23 AM Darafei "Komяpa" Praliaskouski <<a href="mailto:me@komzpa.net">me@komzpa.net</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">I expect to be able to get the result of this function via ST_UnaryUnion(geom, precision), or, if that's not available, as ST_Union(geom, 'GEOMETRYCOLLECTION EMPTY', precision) for the most cases with GEOS 3.9.</div></blockquote></div></div>