You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/04/08 21:54:25 UTC

[jira] [Commented] (LUCENE-7195) GeoPolygon construction sometimes inexplicably chooses concave polygons when order of points is clockwise

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

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

Commit 4c4730484d27d49223ce1841ed022f1d7550fbc1 in lucene-solr's branch refs/heads/master from [~kwright@metacarta.com]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=4c47304 ]

LUCENE-7195: Clockwise/counterclockwise detection was rotating coordinates in the wrong direction.


> GeoPolygon construction sometimes inexplicably chooses concave polygons when order of points is clockwise
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-7195
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7195
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/spatial3d
>    Affects Versions: master
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>         Attachments: LUCENE-7195.patch
>
>
> The following input generates the following polygon, which is backwards from the correct sense:
> {code}
> MAKE POLY: centerLat=51.204382859999996 centerLon=0.23125274999999992
> radiusMeters=44832.90297079173 gons=10
>   polyLats=[51.204382859999996, 50.89947531437482, 50.8093624806861,50.8093624806861, 50.89947531437482, 51.204382859999996, 51.51015366140113, 51.59953838204167, 51.59953838204167, 51.51015366140113, 51.204382859999996]
>   polyLons=[0.8747711978759765, 0.6509219832137298, 0.35960265165247807, 0.10290284834752167, -0.18841648321373008, -0.41226569787597667, -0.18960465285650027, 0.10285893781346236, 0.35964656218653757, 0.6521101528565002, 0.8747711978759765]
>  --> QUERY: PointInGeo3DShapeQuery: field=point: Shape:
> GeoCompositeMembershipShape: {[GeoConcavePolygon:
> {planetmodel=PlanetModel.WGS84, points=
> [[lat=0.899021779599662, lon=0.011381469253029434],
>  [lat=0.9005818372758149, lon=0.006277016653633617],
>  [lat=0.9005818372758149, lon=0.0017952271299490152],
>  [lat=0.899021779599662, lon=-0.003309225469446801],
>  [lat=0.8936850723587506, lon=-0.007195393820967987],
>  [lat=0.8883634317734164, lon=-0.0032884879971082164],
>  [lat=0.8867906661272461, lon=0.0017959935133446592],
>  [lat=0.8867906661272461, lon=0.006276250270237971],
>  [lat=0.8883634317734164, lon=0.011360731780690846],
>  [lat=0.8936850723587506, lon=0.015267637604550617]], internalEdges={}, holes=[]}]}
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org