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 2016/05/01 17:20:21 UTC
lucene-solr:master: LUCENE-7241: Improve ability to find pole.
Repository: lucene-solr
Updated Branches:
refs/heads/master ccc9057ea -> 645889f6b
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/645889f6
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/645889f6
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/645889f6
Branch: refs/heads/master
Commit: 645889f6b296fd445b1b104ad112b3b9beea8f9d
Parents: ccc9057
Author: Karl Wright <Da...@gmail.com>
Authored: Sun May 1 11:20:10 2016 -0400
Committer: Karl Wright <Da...@gmail.com>
Committed: Sun May 1 11:20:10 2016 -0400
----------------------------------------------------------------------
.../lucene/spatial3d/geom/GeoPolygonTest.java | 24 ++++++++++++++++++++
1 file changed, 24 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/645889f6/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);
+
+ }
+
}