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

   In some functions, like below, we use `GeometryType()` to check which 
datatype a geometry is. I just realized that `GeometryType` also specifies 
dimension (e.g `POINTM` instead of just `POINT`), so the string won't match 
properly in the `=` comparison, if the geometry has a z or m dimension. The 
easiest way to fix this is probably to use `ST_GeometryType()` instead, since 
it doesn't add that suffix. Slight difference to note is that it adds a `ST_` 
prefix to the output, so we need to update the expected string accordingly (e.g 
change `GEOMETRYCOLLECTION` to `ST_GEOMETRYCOLLECTION`)
   
   
https://github.com/apache/sedona/blob/6dc39e753b9d2087d27d2a6072b95d3eda91c53f/python/sedona/spark/geopandas/geoseries.py#L1024-L1033


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