You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JavaDoc of PreparedGeometry says "Subclasses are intended to be thread-safe, to allow PreparedGeometry to be used in a multi-threaded context (which allows extracting maximum benefit from the prepared state)."
However, PreparedPolygon is not thread safe, and under concurrent load may give sometimes incorrect result of #contains(Geometry) method. This effect and suggested fix are shown in this PR: #746 .
The text was updated successfully, but these errors were encountered:
dr-jts
changed the title
PreparedPolygon should be thread safe
PreparedPolygon is not thread safe
Jun 23, 2021
JavaDoc of PreparedGeometry says "Subclasses are intended to be thread-safe, to allow
PreparedGeometry
to be used in a multi-threaded context (which allows extracting maximum benefit from the prepared state)."However, PreparedPolygon is not thread safe, and under concurrent load may give sometimes incorrect result of #contains(Geometry) method. This effect and suggested fix are shown in this PR: #746 .
The text was updated successfully, but these errors were encountered: