-
Notifications
You must be signed in to change notification settings - Fork 695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SEDONA-294 | SEDONA-310] Add ST_Angle and ST_Degrees to sedona #870
Conversation
# Conflicts: # common/src/main/java/org/apache/sedona/common/Functions.java # common/src/main/java/org/apache/sedona/common/utils/GeomUtils.java # common/src/test/java/org/apache/sedona/common/FunctionsTest.java # flink/src/main/java/org/apache/sedona/flink/Catalog.java # flink/src/test/java/org/apache/sedona/flink/FunctionTest.java # python/sedona/sql/st_functions.py # python/tests/sql/test_dataframe_api.py # python/tests/sql/test_function.py # sql/common/src/main/scala/org/apache/sedona/sql/UDF/Catalog.scala # sql/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/Functions.scala # sql/common/src/test/scala/org/apache/sedona/sql/dataFrameAPITestScala.scala # sql/common/src/test/scala/org/apache/sedona/sql/functionTestScala.scala
# Conflicts: # common/src/test/java/org/apache/sedona/common/FunctionsTest.java # flink/src/main/java/org/apache/sedona/flink/Catalog.java # python/sedona/sql/st_functions.py # python/tests/sql/test_function.py # sql/common/src/main/scala/org/apache/sedona/sql/UDF/Catalog.scala # sql/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/Functions.scala # sql/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/st_functions.scala # sql/common/src/test/scala/org/apache/sedona/sql/dataFrameAPITestScala.scala # sql/common/src/test/scala/org/apache/sedona/sql/functionTestScala.scala
…_Angle # Conflicts: # common/src/main/java/org/apache/sedona/common/Functions.java # common/src/main/java/org/apache/sedona/common/utils/GeomUtils.java # common/src/test/java/org/apache/sedona/common/FunctionsTest.java # docs/api/flink/Function.md # docs/api/sql/Function.md # flink/src/main/java/org/apache/sedona/flink/Catalog.java # flink/src/test/java/org/apache/sedona/flink/FunctionTest.java # python/sedona/sql/st_functions.py # python/tests/sql/test_dataframe_api.py # python/tests/sql/test_function.py # sql/common/src/main/scala/org/apache/sedona/sql/UDF/Catalog.scala # sql/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/NullSafeExpressions.scala # sql/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/st_functions.scala # sql/common/src/test/scala/org/apache/sedona/sql/dataFrameAPITestScala.scala # sql/common/src/test/scala/org/apache/sedona/sql/functionTestScala.scala
@@ -481,6 +515,11 @@ public static void affineGeom(Geometry geometry, Double a, Double b, Double d, D | |||
geometry.geometryChanged(); | |||
} | |||
|
|||
public static double getFrechetDistance(Geometry g1, Geometry g2) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this PR adding getFrechetDistance?
# Conflicts: # common/src/main/java/org/apache/sedona/common/utils/GeomUtils.java # python/sedona/sql/st_functions.py # sql/common/src/test/scala/org/apache/sedona/sql/functionTestScala.scala
@iGN5117 Please refer to Kristin's latest PR for overloaded functions and fix your PR accordingly: https://github.com/apache/sedona/pull/874/files |
# Conflicts: # sql/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/Functions.scala # sql/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/InferredExpression.scala # sql/common/src/test/scala/org/apache/sedona/sql/functionTestScala.scala
@iGN5117 Please this accordingly |
# Conflicts: # common/src/main/java/org/apache/sedona/common/utils/GeomUtils.java # sql/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/InferredExpression.scala
docs/api/flink/Function.md
Outdated
Computes the angle formed by vectors S1 - E1 and S2 - E2, where S and E denote start and end points respectively | ||
|
||
!!!Note | ||
If any other geometry type is provided, ST_Angle throws an IllegalArgumentException. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to have indent otherwise mkdocs-materials cannot render it properly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix this issue in both Spark and Flink docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry about that, this got misplaced while resolving conflicts. This is now fixed
Did you read the Contributor Guide?
Is this PR related to a JIRA ticket?
[SEDONA-XXX] my subject
.What changes were proposed in this PR?
How was this patch tested?
Did this PR include necessary documentation updates?
vX.Y.Z
format.