Skip to content
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

Merged
merged 5 commits into from
Dec 22, 2022
Merged

[SEDONA-215] Add ST_ConcaveHull #737

merged 5 commits into from
Dec 22, 2022

Conversation

awadhesh14
Copy link
Contributor

Did you read the Contributor Guide?

Is this PR related to a JIRA ticket?

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?

Adding ST_ConcaveHull to Sedona
Copy link
Member

@jiayuasu jiayuasu left a 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!


Format: `ST_ConcaveHull (A:geometry, pctConvex:float, allowHoles:Boolean)`

Since: `v1.3.1`
Copy link
Member

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.

Copy link
Contributor Author

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
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 59dcfb3

Copy link
Member

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()
Copy link
Member

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

Copy link
Contributor Author

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
@awadhesh14
Copy link
Contributor Author

Thanks for your contribution. In addition to the functions in Spark, please also add ST_ConcaveHull to Sedona Flink. Thanks!

Added in 4985ef5

@@ -12,6 +12,20 @@ SELECT ST_Distance(polygondf.countyshape, polygondf.countyshape)
FROM polygondf
```

## ST_ConcaveHull
Copy link
Member

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)
Copy link
Contributor Author

@awadhesh14 awadhesh14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 2563427

@jiayuasu jiayuasu merged commit f6cd274 into apache:master Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants