petern48 commented on issue #2385:
URL: https://github.com/apache/sedona/issues/2385#issuecomment-3392792948

   Turns out this isn't straightforward, since there's no direct function 
equivalent. See the discussion in the above PR.
   
   A few ideas I have that I don't quite have time to try at the moment:
   1) somehow leverage `ST_DumpPoints`
   2) The below hacky logic. idk if it would work properly. We'd also have to 
wrap it in a case statement to make sure that the below only applies to 
linestrings and we return False for all other cases (including polygon).
   
   ```sql
   SELECT ST_MakePolygon(
       ST_AddPoint(
           column,
           ST_StartPoint(column)
       )
   )
   ```


-- 
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