I have several hundered polygons which may overlap but need to be considered 'not overlapping' when the overlapping is less than 1 meter. The overlapping check in JTS does not offer a tolerance parameter. I'm looking for a pattern how to solve the problem.

1 Answer 1


This can be solved by making a negative buffer (0.5m) for each geometry before testing the overlap.

E.g. you have this two overlaping polygons, 1m overlap: enter image description here

By making a negative buffer (-0.5m) of the blue polygon you'll get the yellow one: enter image description here

And this are the two buffered polygons: enter image description here

Running the binary predicate test in JTS test builder, you'll get no overlap:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.