<div dir="ltr">This is a GEOS error that is being reported<div>- your Geometry has a Topological error</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="font-size:12.8px">> 2017-01-16T11:34:52   1       NOTA: NOTICE:  Self-intersection at or near point</span><br style="font-size:12.8px"><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></blockquote><div><br></div><div>Look for  'ST_SelfIntersections(..)' in PostGis<br></div><div>- it will show the points that cause such errors</div><div>-- not sure of PostGis has this command</div><div><br></div><div>The first error</div><div>- is often a POLYGON that has been created from single LINESTRINGs</div><div>-- 1 or more of these LINESTRINGs have been included more than once</div><div>--- remove the double LINESTRINGs to correct</div><div>---> will start at the given point: <span style="font-size:12.8px">619746.32941695023 4869530.4882389866</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">The error message will only show the first POINT, if there are more than one you should look for the next.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">The second error means that the ExteriorRing of the POLYGON only has 3 POINTs</span></div><div><span style="font-size:12.8px">- 4 are required to be </span>Topologicaly correct</div><div>SELECT ST_NumPoints(ST_ExteriorRing(geometry))<br></div><div>- should return 3 in this case, but should be 4 at least</div><div><br></div><div>Certain functions, that use GEOS, will not bring correct results</div><div>- when Topological error exists</div><div>-- and should be corrected</div><div><br></div><div>Mark Johnson</div><div><br></div><div><br></div></div>