[ 
https://issues.apache.org/jira/browse/LUCENE-7430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15448165#comment-15448165
 ] 

Karl Wright commented on LUCENE-7430:
-------------------------------------

The north rectangle that is misbehaving is a narrow, very tiny rectangle with 
one point at the north pole and the other two points not far different from 
that.  The point is coming up as being not within the bounds but as being 
within the shape.  But this applies only to the quantized point; the 
unquantized point is fine.

So in this case it would initially appear that we have a test problem.

We generally accept that there are some effects of quantization; once a point 
is quantized it potentially leaves the exact surface of the world and can 
therefore wind up being outside of a shape's bounds.  That appears to be the 
situation here.  The only question is: what to do about it, without making the 
test useless?

> Geo3d test failure
> ------------------
>
>                 Key: LUCENE-7430
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7430
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>
> Here's the error msg:
> {code}
>    [junit4] Suite: org.apache.lucene.spatial3d.TestGeo3DPoint
>    [junit4] IGNOR/A 0.02s J0 | TestGeo3DPoint.testRandomBig
>    [junit4]    > Assumption #1: 'nightly' test group is disabled (@Nightly())
>    [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestGeo3DPoint 
> -Dtests.method=testRandomMedium -Dtests.seed=B167D2C466D257A0 
> -Dtests.slow=true -Dtests.locale=pt -Dtests.timezone=Etc/GMT+5 
> -Dtests.asserts=true -Dtests.file.encoding=Cp1252
>    [junit4] FAILURE 4.06s J0 | TestGeo3DPoint.testRandomMedium <<<
>    [junit4]    > Throwable #1: java.lang.AssertionError: FAIL: id=4546 should 
> have matched but did not
>    [junit4]    >   shape=GeoWideNorthRectangle: 
> {planetmodel=PlanetModel.WGS84, 
> bottomlat=1.5707949696510948(89.99992224138796), 
> leftlon=3.141592653589793(180.0), 
> rightlon=3.1140200112375265(178.42020396319145)}
>    [junit4]    >   bounds=XYZBounds: [xmin=-1.3551580601679786E-6 
> xmax=1.3551580601679786E-6 ymin=-1.3551580601679786E-6 
> ymax=1.3551580601679786E-6 zmin=0.9977622910211923 zmax=0.9977622930221051]
>    [junit4]    >   world bounds=( minX=-1.0011188539924791 
> maxX=1.0011188539924791 minY=-1.0011188539924791 maxY=1.0011188539924791 
> minZ=-0.9977622920221051 maxZ=0.9977622920221051
>    [junit4]    >   quantized point=[X=7.323492821176281E-6, 
> Y=-2.3309121299774915E-10, Z=0.9977622921205215] within shape? true within 
> bounds? false
>    [junit4]    >   unquantized point=[lat=1.570788986986606, 
> lon=-1.0056566715747591E-117([X=7.323383942914017E-6, 
> Y=-7.364809920694947E-123, Z=0.9977622919954089])] within shape? false within 
> bounds? false
>    [junit4]    >   docID=4438 deleted?=false
>    [junit4]    >   query=PointInGeo3DShapeQuery: field=point: Shape: 
> GeoWideNorthRectangle: {planetmodel=PlanetModel.WGS84, 
> bottomlat=1.5707949696510948(89.99992224138796), 
> leftlon=3.141592653589793(180.0), 
> rightlon=3.1140200112375265(178.42020396319145)}
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to