You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Ignacio Vera (JIRA)" <ji...@apache.org> on 2018/04/10 08:06:00 UTC
[jira] [Resolved] (LUCENE-8247)
Geo3dShapeWGS84ModelRectRelationTest fail
[ https://issues.apache.org/jira/browse/LUCENE-8247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ignacio Vera resolved LUCENE-8247.
----------------------------------
Resolution: Fixed
Fix Version/s: master (8.0)
7.4
> Geo3dShapeWGS84ModelRectRelationTest fail
> -----------------------------------------
>
> Key: LUCENE-8247
> URL: https://issues.apache.org/jira/browse/LUCENE-8247
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/spatial-extras
> Reporter: Ignacio Vera
> Assignee: Ignacio Vera
> Priority: Minor
> Fix For: 7.4, master (8.0)
>
>
> There are some failing test, fix is trivial as we only need to increase the circle precision. I will push a fix.
>
> {code:java}
> [junit4] Suite: org.apache.lucene.spatial.spatial4j.Geo3dShapeWGS84ModelRectRelationTest
> [junit4] 1> Laps: 978 CWIDbD: 178,2,411,0,387
> [junit4] 1> rect=GeoDegenerateHorizontalLine: {planetmodel=PlanetModel.WGS84, latitude=0.2792526803190927(16.0), leftlon=0.06981317007977318(4.0), rightLon=0.6283185307179586(36.0)}
> [junit4] 1> Laps: 248 CWIDbD: 62,1,106,43,36
> [junit4] 1> Laps: 1583 CWIDbD: 794,2,422,109,256
> [junit4] 2> NOTE: reproduce with: ant test -Dtestcase=Geo3dShapeWGS84ModelRectRelationTest -Dtests.method=testGeoPolygonRect -Dtests.seed=389CD4FDC599FC2D -Dtests.slow=true -Dtests.locale=en-NF -Dtests.timezone=America/Danmarkshavn -Dtests.asserts=true -Dtests.file.encoding=UTF-8
> [junit4] FAILURE 0.37s J1 | Geo3dShapeWGS84ModelRectRelationTest.testGeoPolygonRect <<<
> [junit4] > Throwable #1: java.lang.AssertionError: expected:<CONTAINS> but was:<DISJOINT>
> [junit4] > at __randomizedtesting.SeedInfo.seed([389CD4FDC599FC2D:587BE00A27B86BE]:0)
> [junit4] > at org.locationtech.spatial4j.shape.RandomizedShapeTest.randomPointIn(RandomizedShapeTest.java:250)
> [junit4] > at org.apache.lucene.spatial.spatial4j.ShapeRectRelationTestCase$3.generateRandomShape(ShapeRectRelationTestCase.java:133)
> [junit4] > at org.locationtech.spatial4j.shape.RectIntersectionTestHelper.testRelateWithRectangle(RectIntersectionTestHelper.java:98)
> [junit4] > at org.apache.lucene.spatial.spatial4j.ShapeRectRelationTestCase.testGeoPolygonRect(ShapeRectRelationTestCase.java:157)
> [junit4] > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [junit4] > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> [junit4] > at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> [junit4] > at java.base/java.lang.reflect.Method.invoke(Method.java:564)
> [junit4] > at java.base/java.lang.Thread.run(Thread.java:844)
> [junit4] 2> NOTE: test params are: codec=Asserting(Lucene70): {}, docValues:{}, maxPointsInLeafNode=954, maxMBSortInHeap=6.857853053111171, sim=RandomSimilarity(queryNorm=false): {}, locale=en-NF, timezone=America/Danmarkshavn
> [junit4] 2> NOTE: Mac OS X 10.11.6 x86_64/Oracle Corporation 9 (64-bit)/cpus=3,threads=1,free=32464480,total=54853632
> [junit4] 2> NOTE: All tests run in this JVM: [TestBBoxStrategy, SpatialArgsParserTest, Geo3dRptTest, JtsPolygonTest, DistanceStrategyTest, SpatialPrefixTreeTest, RandomSpatialOpFuzzyPrefixTreeTest, DateRangePrefixTreeTest, S2PrefixTreeTest, Geo3dShapeWGS84ModelRectRelationTest]{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org