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


##########
common/src/test/java/org/apache/sedona/common/FunctionsTest.java:
##########
@@ -731,4 +771,90 @@ public void nRingsUnsupported() {
         assertEquals(expected, e.getMessage());
     }
 
+    @Test
+    public void translateEmptyObjectNoDeltaZ() {

Review Comment:
   Done



##########
sql/common/src/test/scala/org/apache/sedona/sql/dataFrameAPITestScala.scala:
##########
@@ -978,5 +978,14 @@ class dataFrameAPITestScala extends TestBaseScala {
       val actual = df.take(1)(0).getInt(0)
       assert(expected == actual)
     }
+
+    it("Passed ST_Translate") {

Review Comment:
   Done



##########
docs/api/flink/Function.md:
##########
@@ -993,6 +993,31 @@ FROM polygondf
 !!!note
     The detailed EPSG information can be searched on 
[EPSG.io](https://epsg.io/).
 
+## ST_Translate
+Introduction: Returns the input geometry with its X, Y and Z coordinates (if 
present in the geometry) translated by deltaX, deltaY and deltaZ (if specified)
+
+If the geometry is 2D, and a deltaZ parameter is specified, no change is done 
to the Z coordinate of the geometry and the resultant geometry is also 2D.
+
+If the geometry is empty, no change is done to it.
+
+If a geometry collection is given, all geometries of the collection are 
individually translated.

Review Comment:
   Updated



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