I am still a beginner to GIS.
I have a polygon and I want to draw a large border inside the that polygon (see fig A and B below).
With the library I am using, I have to do this with a polygon with "holes" (inner rings).
I use JTS to buffer the polygon with a negative value, which works most of the time.
The issue is that is some situations, the buffered geometry is self intersecting (fig C, red circles) and the rendering library does not like it (not one bit).
How can I go from fig. C to fig. D with JTS ?
The code is really simple (insetDeg is a negative value) :
Geometry innerPoly = polygon.buffer(insetDeg);
I then add my innerPoly as an inner ring for the renderer
This is not a code related question, and to me it is more about geometry manipulation know-how.
"Do an intersection of the polygon with itself" is the tip I was looking for.