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


##########
common/src/main/java/org/apache/sedona/common/Functions.java:
##########
@@ -881,6 +881,38 @@ public static Integer nRings(Geometry geometry) throws 
Exception {
         return numRings;
     }
 
+    public static Geometry translate(Geometry geometry, double deltaX, double 
deltaY, double deltaZ) {
+        if (!geometry.isEmpty()) {
+            if (geometry instanceof GeometryCollection) {
+                GeometryCollection geometryCollection = (GeometryCollection) 
geometry;

Review Comment:
   Fixed ST_Translate to handle recursive geometries in a better way.
   Updated test cases for ST_Force3D



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