lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject lucene-solr:branch_6x: LUCENE-7241: Improve ability to find pole.
Date Sun, 01 May 2016 15:21:04 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6x f1e972c01 -> f603e1529


LUCENE-7241: Improve ability to find pole.


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

Branch: refs/heads/branch_6x
Commit: f603e1529a1aea6b27a57d47f9b445d74ca90b81
Parents: f1e972c
Author: Karl Wright <DaddyWri@gmail.com>
Authored: Sun May 1 11:20:10 2016 -0400
Committer: Karl Wright <DaddyWri@gmail.com>
Committed: Sun May 1 11:20:57 2016 -0400

----------------------------------------------------------------------
 .../lucene/spatial3d/geom/GeoPolygonTest.java   | 24 ++++++++++++++++++++
 1 file changed, 24 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/f603e152/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 084bed1..0484cb2 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
@@ -642,4 +642,28 @@ shape:
     
   }
   
+  @Test
+  public void testPolygonFactoryCase4() {
+    // [[lat=0.897812132711355, lon=0.0025364171887532795([X=0.6227358672251874, Y=0.0015795213449218714,
Z=0.7812318690127594])],
+    // [lat=0.897812132711355, lon=0.0025363997354607595([X=0.6227358672527552, Y=0.001579510476130618,
Z=0.7812318690127594])],
+    // [lat=0.8978120628981849, lon=0.0025362601091206([X=0.6227359221556139, Y=0.0015794236644894651,
Z=0.7812318257158789])]]
+    
+    final GeoPoint p1 = new GeoPoint(PlanetModel.WGS84, 0.897812132711355, 0.0025364171887532795);
+    final GeoPoint p2 = new GeoPoint(PlanetModel.WGS84, 0.897812132711355, 0.0025363997354607595);
+    final GeoPoint p3 = new GeoPoint(PlanetModel.WGS84, 0.8978120628981849, 0.0025362601091206);
+    
+    final List<GeoPoint> points = new ArrayList<>();
+    points.add(p1);
+    points.add(p2);
+    points.add(p3);
+    
+    final List<GeoPolygonFactory.PolygonDescription> shapeList = new ArrayList<>();
+    final GeoPolygonFactory.PolygonDescription desc = new GeoPolygonFactory.PolygonDescription(points,
new ArrayList<GeoPolygonFactory.PolygonDescription>());
+    
+    shapeList.add(desc);
+    
+    GeoPolygon p = GeoPolygonFactory.makeLargeGeoPolygon(PlanetModel.WGS84, shapeList);
+    
+  }
+  
 }


Mime
View raw message