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

ASF subversion and git services commented on LUCENE-7270:
---------------------------------------------------------

Commit 6ef0f218f67505b655a5f5327b334bf28259e461 in lucene-solr's branch 
refs/heads/master from [[email protected]]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=6ef0f21 ]

LUCENE-7270: Robert's implementation of the tree structure works as well and 
it's simpler, so I'm switching to that.


> Use better balanced trees for Geo3d complex polygons
> ----------------------------------------------------
>
>                 Key: LUCENE-7270
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7270
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/spatial3d
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>             Fix For: master, 6.x
>
>
> The current tree data structure in GeoComplexPolygon has a lot of weaknesses. 
>  A better algorithm maybe can be taken from Polygon2D, which basically does 
> the following:
> Each node has:
> - low value (which is for that edge alone)
> - max value (which is for that edge and all children)
> Balanced tree building:
> - sort by low value (which is for the individual edge), and use max value as 
> tie breaker (which is max for edge and all children)
> - build tree after sorting, picking midpoint and recursively building lesser 
> and greater children that way
> Balanced tree traversal (looking for range minValue -> maxValue):
> - Descend the entire tree until the node fails this test:
>       if (minValue <= max) { ... }
>   So if the minimum value being sought is greater than the max for this edge 
> and all children, we stop and don't look at children.
>   (Q: does this represent a good split and a targeted range?  Maybe...  We 
> can certainly try it.)



--
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