You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sedona.apache.org by "Dimitris Bilidas (Jira)" <ji...@apache.org> on 2022/04/22 13:21:00 UTC
[jira] [Created] (SEDONA-118) ST_Within uses wrong JTS Function
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)