<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><pre style="white-space:pre-wrap">let me be more clear: there are NO invalid geoms in the DB, as reported
by st_isvalid. what is strange:
* invalidities are reported in qgis log (this may be due to
simplification, thanks Alvaro)</pre></pre></blockquote><div><br></div><div>Then attept an 'ST_Simplify(geom,tolerance)' on these geometries to see if these errors occur:</div><div>- tolerance '1' seems to be the default value being used </div><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><span style="font-size:12.8px;font-family:arial,sans-serif;color:rgb(34,34,34)">> 2017-01-16T11:34:52   1       NOTA: NOTICE:  Self-intersection at or near point</span><br></pre><div><span style="font-size:12.8px">> 619746.32941695023 4869530.4882389866</span><br style="font-size:12.8px"><span style="font-size:12.8px">> 2017-01-16T11:34:52   1       NOTA: NOTICE:  IllegalArgumentException: Invalid</span><br style="font-size:12.8px"><span style="font-size:12.8px">> number of points in LinearRing found 3 - must be 0 or >= 4</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div></div>