Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
Currently, ST_AsEWKT drops the Z coordinate, while ST_AsText reserves it.
scala> spark.sql("SELECT ST_AsText(ST_Point(0.0, 0.0, 0.0))").show() +----------------------------------+ |st_astext(st_point(0.0, 0.0, 0.0))| +----------------------------------+ | POINT Z(0 0 0)| +----------------------------------+ scala> spark.sql("SELECT ST_AsEWKT(ST_Point(0.0, 0.0, 0.0))").show() +----------------------------------+ |st_asewkt(st_point(0.0, 0.0, 0.0))| +----------------------------------+ | POINT (0 0)| +----------------------------------+
As far as I can see, Sedona's 3D support is limited as of now, but a few functions (e.g., ST_3DDistance) support it, so the Z coordinate should be reserved.
Attachments
Issue Links
- links to