-
Notifications
You must be signed in to change notification settings - Fork 654
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-215] Add ST_ConcaveHull #737
Conversation
Adding ST_ConcaveHull to Sedona
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.
Thanks for your contribution. In addition to the functions in Spark, please also add ST_ConcaveHull to Sedona Flink. Thanks!
docs/api/sql/Function.md
Outdated
|
||
Format: `ST_ConcaveHull (A:geometry, pctConvex:float, allowHoles:Boolean)` | ||
|
||
Since: `v1.3.1` |
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. Please change this to 1.3.2. I forgot to update the versions in POM file.
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.
Fixed in 59dcfb3
@@ -12,6 +12,20 @@ SELECT ST_Distance(polygondf.countyshape, polygondf.countyshape) | |||
FROM polygondf | |||
``` | |||
|
|||
## ST_ConcaveHull |
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 do not update the archived GeoSpark func
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.
Fixed in 59dcfb3
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 remove the change in the archive folder. Please add the new API t o Flink SQL doc as well.
polygon_df.show() | ||
|
||
function_df = self.spark.sql("select ST_ConcaveHull(polygondf.countyshape, 1.0) from polygondf") | ||
function_df.show() |
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 do not use show
to verify the result. Use assertion to decide if a result is expected
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.
@jiayuasu This file follows the pattern of show
type of tests only(reference is to all other tests in this file). The assert tests have been added to the test files following that pattern.
* Adding ST_ConcaveHull to Sedona * Updating release version * Removing ST_Concave from archived docs
Adding ST_ConcaveHull to flink
Added in 4985ef5 |
@@ -12,6 +12,20 @@ SELECT ST_Distance(polygondf.countyshape, polygondf.countyshape) | |||
FROM polygondf | |||
``` | |||
|
|||
## ST_ConcaveHull |
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 remove the change in the archive folder. Please add the new API t o Flink SQL doc as well.
* [SEDONA-215] Add ST_ConcaveHull (#3)
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.
Fixed in 2563427
Did you read the Contributor Guide?
Is this PR related to a JIRA ticket?
[SEDONA-215] Add ST_ConcaveHull
.What changes were proposed in this PR?
Implementation of ST_ConcaveHull
How was this patch tested?
Scala, Python, and Java integration tests
Did this PR include necessary documentation updates?
v1.3.1
format.