yunchipang commented on code in PR #2387:
URL: https://github.com/apache/sedona/pull/2387#discussion_r2423196173
##########
python/sedona/spark/geopandas/geoseries.py:
##########
@@ -976,7 +976,12 @@ def is_ccw(self):
@property
def is_closed(self):
- spark_expr = stf.ST_IsClosed(self.spark.column)
+ # Only check LineStrings; return False for all other geometry types
+ spark_expr = F.when(
+ stf.GeometryType(self.spark.column).isin(["LINESTRING"]),
Review Comment:
@petern48 hope i understood it correctly
--
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]