<div dir="ltr"><div dir="ltr">Here we have installed postgis 2.1.4. I read that in version 2.2 onwards if they are binary equal, it returns true even if the geometry is invalid.<br></div></div><br><div class="gmail_quote"><div dir="ltr">El mié., 10 oct. 2018 a las 10:43, Daniel Baston (<<a href="mailto:dbaston@gmail.com">dbaston@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Plugging the WKT directly into JTS TestBuilder shows that<br>
equals=false, even if you paste the same WKT for both inputs. The<br>
geometry is invalid, but I would have expected Geometry.equals() to<br>
report a correct answer or throw an exception.<br>
<br>
PostGIS 2.2+ should return 'true' in this case, because it does a<br>
memcmp before ever sending the geometry to GEOSEquals.<br>
<br>
Dan<br>
<br>
On Wed, Oct 10, 2018 at 9:29 AM Sandro Santilli <<a href="mailto:strk@kbt.io" target="_blank">strk@kbt.io</a>> wrote:<br>
><br>
> On Wed, Oct 10, 2018 at 10:07:20AM -0300, Agustin Ignacio Genoves wrote:<br>
><br>
> > when I compared two identical geometries with the function st_equals () it<br>
> > returns false. I give details of the geometries and the query.<br>
><br>
> When you print the geometries in WKT form you loose precision<br>
> (due to the limited number of decimal digits we print).<br>
><br>
> Get an HEXWKB representation of those two geometries and I bet you'll<br>
> find a difference.<br>
><br>
> --strk;<br>
> _______________________________________________<br>
> postgis-users mailing list<br>
> <a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></blockquote></div>