iGN5117 commented on code in PR #856:
URL: https://github.com/apache/sedona/pull/856#discussion_r1225885317


##########
docs/api/sql/Function.md:
##########
@@ -576,6 +576,46 @@ Result:
 +---------------------------------------------------------------+
 ```
 
+## ST_Force3D
+Introduction: Forces the geometry into a 3-dimensional model so that all 
output representations will have X, Y and Z coordinates.
+An optionally given zValue is tacked onto the geometry if the geometry is 
2-dimensional. Default value of zValue is 0.0
+If the given geometry is 3-dimensional, no change is performed on it.
+If the given geometry is empty, no change is performed on it.
+
+Format: `ST_Force3D(geometry, zValue)`
+
+Since: `1.4.1`
+
+Spark SQL Example:
+
+```sql
+SELECT ST_Force3D(geometry) AS geom
+```
+
+Input: `LINESTRING(0 1, 1 2, 2 1)`
+
+Output: `LINESTRING(0 1 0, 1 2 0, 2 1 0)`

Review Comment:
   Yes you're right, updated the documentation with a note explaining the output



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