lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1696591 - /lucene/dev/branches/lucene6699/lucene/spatial3d/src/test/org/apache/lucene/bkdtree3d/TestGeo3DPointField.java
Date Wed, 19 Aug 2015 14:06:36 GMT
Author: mikemccand
Date: Wed Aug 19 14:06:36 2015
New Revision: 1696591

URL: http://svn.apache.org/r1696591
Log:
LUCENE-6699: also detect when SHAPE_INSIDE_CELL in test case

Modified:
    lucene/dev/branches/lucene6699/lucene/spatial3d/src/test/org/apache/lucene/bkdtree3d/TestGeo3DPointField.java

Modified: lucene/dev/branches/lucene6699/lucene/spatial3d/src/test/org/apache/lucene/bkdtree3d/TestGeo3DPointField.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene6699/lucene/spatial3d/src/test/org/apache/lucene/bkdtree3d/TestGeo3DPointField.java?rev=1696591&r1=1696590&r2=1696591&view=diff
==============================================================================
--- lucene/dev/branches/lucene6699/lucene/spatial3d/src/test/org/apache/lucene/bkdtree3d/TestGeo3DPointField.java
(original)
+++ lucene/dev/branches/lucene6699/lucene/spatial3d/src/test/org/apache/lucene/bkdtree3d/TestGeo3DPointField.java
Wed Aug 19 14:06:36 2015
@@ -294,6 +294,12 @@ public class TestGeo3DPointField extends
                                         return BKD3DTreeReader.Relation.CELL_INSIDE_SHAPE;
                                       }
 
+                                      if (xMinEnc >= cellXMin && xMaxEnc <=
cellXMax &&
+                                          yMinEnc >= cellYMin && yMaxEnc <=
cellYMax &&
+                                          zMinEnc >= cellZMin && zMaxEnc <=
cellZMax) {
+                                        return BKD3DTreeReader.Relation.SHAPE_INSIDE_CELL;
+                                      }
+
                                       return BKD3DTreeReader.Relation.SHAPE_CROSSES_CELL;
                                     }
                                   });



Mime
View raw message