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

   I think that all polygons in OSM and other datasets are supposed to be 
ordered in such a way that the points in the polygon are listed in counter 
clockwise direction. 
   
   Here is an example. I gave it this polygon:
   POLYGON ((10.947076 45.9679118, 10.9471748 45.967871, 10.9472574 45.9679588, 
10.9471571 45.9680032, 10.947076 45.9679118))
   
   And asked it to apply ST_MakeValid on it and it gave me this:
   POLYGON ((10.947076 45.9679118, 10.9471571 45.9680032, 10.9472574 
45.9679588, 10.9471748 45.967871, 10.947076 45.9679118))
   
   Here is a picture of that polygon with the first (and last) node highlited.
   
![Image](https://github.com/user-attachments/assets/2b642675-0061-4fcb-8422-763f61485fc7)
   
   Here is a picture of that same polygon with the first and second point of 
the original polygon highlighted showing that the order indicates that it is 
counter-clockwise - This is correct!
   
![Image](https://github.com/user-attachments/assets/72178994-6e7e-426c-9a39-3bfc257053bf)
   
   Here is a picture of that same polygon with the first and second point of 
the polygon that was created with ST_MakeValid highlighted showing that the 
order indicates that it is clockwise - This is Wrong!
   
![Image](https://github.com/user-attachments/assets/0a04119e-caeb-4d58-8325-e6384fa462b3)
   
   


-- 
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: dev-unsubscr...@sedona.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to