[ https://issues.apache.org/jira/browse/LUCENE-8032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16236042#comment-16236042 ]
Karl Wright commented on LUCENE-8032: ------------------------------------- [~ivera], the factory method is called in your test: {code} pointList.add(new GeoPoint(PlanetModel.WGS84, 0.06776123345311073, -0.7752474170087745)); pointList.add(new GeoPoint(PlanetModel.WGS84, 0.11666112095362069,-0.8228149925456804)); pointList.add(new GeoPoint(PlanetModel.WGS84, 0.08767696070608244, -0.9145966780640845)); GeoPolygon polygon = GeoPolygonFactory.makeGeoPolygon(PlanetModel.WGS84, pointList); {code} This should construct a GeoConcavePolygon if warranted, no? > Test failed: RandomGeoShapeRelationshipTest.testRandomContains > -------------------------------------------------------------- > > Key: LUCENE-8032 > URL: https://issues.apache.org/jira/browse/LUCENE-8032 > Project: Lucene - Core > Issue Type: Bug > Components: modules/spatial3d > Reporter: David Smiley > Assignee: Karl Wright > Priority: Minor > Fix For: 6.7, master (8.0), 7.2 > > Attachments: LUCENE-8032.patch > > > https://jenkins.thetaphi.de/job/Lucene-Solr-master-Linux/20800/ > {noformat} > Error Message: > geoAreaShape: GeoExactCircle: {planetmodel=PlanetModel.WGS84, > center=[lat=-0.00871130560892533, > lon=2.3029626482941588([X=-0.6692047265792528, Y=0.7445316825911176, > Z=-0.008720939756154669])], radius=3.038428918538668(174.0891533827647), > accuracy=2.111101444186927E-4} shape: GeoRectangle: > {planetmodel=PlanetModel.WGS84, > toplat=0.18851664435052304(10.801208089253723), > bottomlat=-1.4896034997154073(-85.34799368160976), > leftlon=-1.4970589804391838(-85.7751612613233), > rightlon=1.346321571653886(77.13854392318753)} expected:<0> but was:<2> > Stack Trace: > java.lang.AssertionError: geoAreaShape: GeoExactCircle: > {planetmodel=PlanetModel.WGS84, center=[lat=-0.00871130560892533, > lon=2.3029626482941588([X=-0.6692047265792528, Y=0.7445316825911176, > Z=-0.008720939756154669])], radius=3.038428918538668(174.0891533827647), > accuracy=2.111101444186927E-4} > shape: GeoRectangle: {planetmodel=PlanetModel.WGS84, > toplat=0.18851664435052304(10.801208089253723), > bottomlat=-1.4896034997154073(-85.34799368160976), > leftlon=-1.4970589804391838(-85.7751612613233), > rightlon=1.346321571653886(77.13854392318753)} expected:<0> but was:<2> > at > __randomizedtesting.SeedInfo.seed([87612C9805977C6F:B087E212A0C8DB25]:0) > at org.junit.Assert.fail(Assert.java:93) > at org.junit.Assert.failNotEquals(Assert.java:647) > at org.junit.Assert.assertEquals(Assert.java:128) > at org.junit.Assert.assertEquals(Assert.java:472) > at > org.apache.lucene.spatial3d.geom.RandomGeoShapeRelationshipTest.testRandomContains(RandomGeoShapeRelationshipTest.java:225) > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org