Skip to content

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.


```
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
@furqaankhan furqaankhan deleted the st-transform-number branch July 16, 2024 01:39
Kontinuation pushed a commit to Kontinuation/sedona that referenced this pull request Oct 11, 2024
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.

2 participants