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

Jia Yu commented on SEDONA-118:
-------------------------------

[~dbilid] Thanks for bringing this up. Would you like to create a PR?

> ST_Within uses wrong JTS Function
> ---------------------------------
>
>                 Key: SEDONA-118
>                 URL: https://issues.apache.org/jira/browse/SEDONA-118
>             Project: Apache Sedona
>          Issue Type: Bug
>    Affects Versions: 1.2.1
>            Reporter: Dimitris Bilidas
>            Priority: Minor
>
> The eval method of ST_Within (in file Predicates.scala) calls the function 
> coveredBy of JTS. Instead, it should call the within function. 
> As a result, now, the expression 
> {code:java}
> ST_Within(ST_GeomFromWKT('POINT(0 0)'),ST_GeomFromWKT('POLYGON ((0.0 0.0, 
> 10.0 0.0, 10.0 10.0, 0.0 10.0, 0.0 0.0))')) {code}
> returns true, whereas the correct behaviour according to the simple features 
> specification for sql should be false.
> Also, the toString method of the ST_Within is wrong.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to