jiayuasu commented on code in PR #2849:
URL: https://github.com/apache/sedona/pull/2849#discussion_r3125740134
##########
common/src/main/java/org/apache/sedona/common/geography/Functions.java:
##########
@@ -85,6 +85,12 @@ public static int nPoints(Geography g) {
return toJTS(g).getNumPoints();
}
+ /** Return the WKT text representation of a geography. */
+ public static String asText(Geography g) {
+ if (g == null) return null;
+ return toJTS(g).toText();
Review Comment:
@zhangfengcdt This toJTS function seem to SerDe WKB one more time. Is it
possible to avoid it?
--
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]