<div dir="ltr"><div dir="ltr">On Sun, Apr 18, 2021 at 12:15 PM Sandro Santilli <<a href="mailto:strk@kbt.io">strk@kbt.io</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
NOTE: I remember many cases of Shapefiles where the winding<br>
      order of holes or exterior rings was wrong, resulting <br>
      in validities like "hole outside shell". This is to say<br>
      that "retain meaning of exterior/interior" is not necessarely<br>
      "better" than "retain all vertices".<br></blockquote><div><br></div><div>Agreed, that is a scenario where the MakeValid "polygonize the lines" approach could be more useful than the GeometryFixer "keep shells and holes" strategy.</div><div><br></div><div>It seems like a characteristic of this scenario is that a shell is nested inside a hole, and holes are wholly outside their shells.  This should be easily detectable.  So perhaps there's an option to switch the behaviour of GeometryFixer in these cases (either as the standard strategy or as an option).  </div><div><br></div><div>Are there other situations where this is NOT desirable behaviour?</div><div><br></div><div>Also note that this does not imply fully reproducing the idea of "retain all vertices".  In particular, MakeValid can include some kinds of polygon boundaries as lines in polygon output, whereas GeometryFixer never adds lines to polygonal output. </div></div></div>