[geos-devel] how to fix self-intersecting linear rings

Steven Beckert s.w.beckert at gmail.com
Sun Aug 16 19:57:02 PDT 2015


What is the best way to fix linear rings which are invalid due to
self-intersection?

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.

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?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geos-devel/attachments/20150817/a1dbef36/attachment.html>


More information about the geos-devel mailing list