Apache Lucene open-source search software
LUCENE-8276: Don't allow travel near a pole; require a different choice of travel plane
Karl Wright9f506635e007
diff --git a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoComplexPolygon.java b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoComplexPolygon.javaindex 373d99a5555..07c7d992c12 100644--- a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoComplexPolygon.java+++ b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoComplexPolygon.java@@ -71,7 +71,7 @@ class GeoComplexPolygon extends GeoBasePolygon {private final GeoPoint[] edgePoints;private final Edge[] shapeStartEdges;- private final static double NEAR_EDGE_CUTOFF = 0.0;+ private final static double NEAR_EDGE_CUTOFF = -Vector.MINIMUM_RESOLUTION * 1000.0;/*** Create a complex polygon from multiple lists of points, and a single point which is known to be in or out ofdiff --git a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/GeoPolygonTest.java b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/GeoPolygonTest.javaindex 0c903b6f016..2f8db33b92a 100755--- a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/GeoPolygonTest.java+++ b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/GeoPolygonTest.java@@ -1723,7 +1723,7 @@ shape:}@Test- @AwaitsFix(bugUrl="https://issues.apache.org/jira/browse/LUCENE-8276")+ //@AwaitsFix(bugUrl="https://issues.apache.org/jira/browse/LUCENE-8276")public void testLUCENE8276_case3() {//POLYGON((2.693381024483753E-4 -0.001073608118084019,1.5848404608659423E-4 -2.6378130512803985E-4,8.981079660799132E-4 -6.4697719116416E-4,-7.934854852157693E-5 4.193687767358618E-4,0.0 8.013660459916381E-131,-3.968797970346633E-4 3.2057826073172334E-4,2.693381024483753E-4 -0.001073608118084019))final List<GeoPoint> points = new ArrayList<>();