Dimitris Bilidas created SEDONA-118:
---------------------------------------

             Summary: 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
             Fix For: 1.2.1


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