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-415] Add optional parameter to ST_Transform #1069

Merged
merged 10 commits into from
Nov 3, 2023

Conversation

furqaankhan
Copy link
Contributor

Did you read the Contributor Guide?

Is this PR related to a JIRA ticket?

What changes were proposed in this PR?

  • Add support to make sourceCRS an optional parameter

How was this patch tested?

  • Passed new test cases.

Did this PR include necessary documentation updates?

  • Yes, I have updated the documentation update.

@@ -2530,7 +2530,7 @@ PROJCS["WGS 84 / Pseudo-Mercator",
Format:

```
ST_Transform (A: Geometry, SourceCRS: String, TargetCRS: String, [Optional] lenientMode: Boolean)
ST_Transform (A: Geometry, [Optional] SourceCRS: String, TargetCRS: String, [Optional] lenientMode: Boolean)
Copy link
Member

Choose a reason for hiding this comment

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

Please provide overloaded variants of this function. Don't just specify optional.

Copy link
Member

Choose a reason for hiding this comment

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

New Python DataFrame API needs to be tested.

function_df = self.spark.sql(
"select ST_Transform(polygondf.countyshape, 'epsg:3857', false) 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.

Same thing here. Do not do show. Use assertion to check the correctness

@jiayuasu jiayuasu added this to the sedona-1.5.1 milestone Nov 3, 2023
@jiayuasu jiayuasu merged commit d99ab70 into apache:master Nov 3, 2023
30 of 40 checks passed
@furqaankhan furqaankhan deleted the st-transform-number branch July 16, 2024 01:39
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