<div dir="ltr">What is the best way to fix linear rings which are invalid due to self-intersection? <div><br></div><div>Converting this ring to a polygon and executing buffer(0) sometimes resolves the self-intersection but sometimes returns nothing or a partial geometry. Considering the input geometry to buffer() is invalid, I realize the result may not valid.<div><br></div><div>The only method that has had consistent success thus far is polygonize(LINEARRING.union()), then extract the boundary. Is there a more efficient way to fix self-intersections? </div><div>Thanks</div></div></div>