You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by kw...@apache.org on 2018/04/26 12:52:34 UTC

lucene-solr:branch_6x: LUCENE-8276: Don't allow travel near a pole; require a different choice of travel plane

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6x 12a194e90 -> f367f3f08


LUCENE-8276: Don't allow travel near a pole; require a different choice of travel plane


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/f367f3f0
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/f367f3f0
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/f367f3f0

Branch: refs/heads/branch_6x
Commit: f367f3f08e627bfa58d0d3dd80fc211262b89e1b
Parents: 12a194e
Author: Karl Wright <Da...@gmail.com>
Authored: Thu Apr 26 08:08:34 2018 -0400
Committer: Karl Wright <Da...@gmail.com>
Committed: Thu Apr 26 08:52:28 2018 -0400

----------------------------------------------------------------------
 .../java/org/apache/lucene/spatial3d/geom/GeoComplexPolygon.java   | 2 +-
 .../src/test/org/apache/lucene/spatial3d/geom/GeoPolygonTest.java  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/f367f3f0/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoComplexPolygon.java
----------------------------------------------------------------------
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.java
index 373d99a..07c7d99 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 of

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/f367f3f0/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/GeoPolygonTest.java
----------------------------------------------------------------------
diff --git a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/GeoPolygonTest.java b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/GeoPolygonTest.java
index 0c903b6..2f8db33 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<>();