Hi Martin,

> > I'm trying to create a negative mitred buffer on a (simple) polygon
with
> > JTS 1.10, and I'm getting strange results very occasionally. For
> > example, the following code gives me an output geometry that
actually
> > extends outside the original geometry (even though a negative buffer
is
> > used).

> This is probably due to some sort of limitation with the mitring
> algorithm.  However, I notice that the 7th and 8th points of your
> geometry are almost identical.  If I remove one of these, the mitred
> buffer looks fine.  Can you clean the points of your geometries
somehow
> to avoid this situation?

Based on what I've seen, it does indeed seem to be due to very short
edges. I've tried cleaning the geometry by reducing coordinate precision
to one place past the decimal and then running it through a
DouglasPeuckerSimplifier with a tolerance of 0 to remove duplicate
coordinates, but this still problem still comes out sometimes (as there
are still some very close coordinates present).

I believe I can clean out all the extremely short edges another way, but
I'm also taking a look at the code in the OffsetCurveBuilder to see if I
can find where it's going wrong. 


Regards,

Gabriel

_______________________________________________
jts-devel mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jts-devel

Reply via email to