petern48 opened a new issue, #2059:
URL: https://github.com/apache/sedona/issues/2059

   ```
   spark.sql("""
   SELECT
       ST_Within(
           ST_GeomFromText('POINT (1 1)'),
           ST_GeomFromText('POINT (1 1)')
       ),  -- True
       ST_Within(
           ST_GeomFromText('POLYGON ((0 0, 1 0, 2 1, 3 1, 0 0))'),
           ST_GeomFromText('POLYGON ((0 0, 1 0, 2 1, 3 1, 0 0))')
       ),  -- False
       ST_Within(
           ST_GeomFromText('MULTIPOLYGON (((0 0, 1 1, 0 1, 0 0)))'),
           ST_GeomFromText('MULTIPOLYGON (((0 0, 1 1, 0 1, 0 0)))')
       )  -- True
   """).show()
   ```
   Above is a query testing ST_Within on identical objects for Points, 
Polygons, and Multipolygons. The second case for Polygons returns False.
   
   In the [PostGIS implementation](https://postgis.net/docs/ST_Within.html) of 
ST_Within, "The within relation is reflexive: every geometry is within itself" 
so I'm guessing the second case is what's wrong. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to