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

Ignacio Vera commented on LUCENE-8133:
--------------------------------------

That is odd. I have been using the factory to build simple square polygons and 
the behavior has been more like WKT, where points are defined in a counter 
clockwise direction as it will be seen from the "top":

(lat,lon)-> (0 0), (0 1),(1 1), (1 0) gives you a convex polygon. Points are 
CCW from the "top".

(lat,lon)-> (0 0), (1 0),(1 1), (0 1) gives you a concave polygon. Points are 
CW from the "top".

Is that the opposite to what is expected? or I am messed up with directions.

[~dsmiley]: Noted, Jira tickets should not be exclusive.

 

> Small polygon fails with misleading error:  Convex polygon has a side that is 
> more than 180 degrees
> ---------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-8133
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8133
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/spatial3d
>            Reporter: Ignacio Vera
>            Assignee: Karl Wright
>            Priority: Major
>         Attachments: LUCENE-8133.patch, image-2018-01-22-12-52-21-656.png, 
> image-2018-01-22-12-55-17-096.png
>
>
> Hi [~karl wright],
> I am trying to create a polygon that is valid but I am getting an error which 
> is probably incorrect. I think it is a problem with precision.
> I will attach a test.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to