petern48 commented on code in PR #2179:
URL: https://github.com/apache/sedona/pull/2179#discussion_r2237567142


##########
common/src/main/java/org/apache/sedona/common/Functions.java:
##########
@@ -1872,6 +1873,13 @@ public static Geometry[] subDivide(Geometry geometry, 
int maxVertices) {
     return GeometrySubDivider.subDivide(geometry, maxVertices);
   }
 
+  public static Geometry segmentize(Geometry geometry, double 
maxSegmentLength) {
+    if (maxSegmentLength <= 0) {
+      throw new IllegalArgumentException("maxSegmentLength must be greater 
than 0");
+    }
+    return Densifier.densify(geometry, maxSegmentLength);

Review Comment:
   :)



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