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-504] Add ST_ShiftLongitude #1255

Merged
merged 12 commits into from
Feb 28, 2024

Conversation

prantogg
Copy link
Contributor

Did you read the Contributor Guide?

Is this PR related to a JIRA ticket?

What changes were proposed in this PR?

Adds ST_ShiftLongitude -

  • Modifies longitudes between -180 and 0 degrees to a range of 180 to 360 degrees and vice versa
  • This is useful for normalizing data across the International Date Line and standardizing coordinate ranges for visualization and spheroidal calculations.

How was this patch tested?

  • Passes new and existing tests

Did this PR include necessary documentation updates?

Geometry point = geomFromWKT("POINT(-175 10)", 4230);
Geometry linestring1 = geomFromEWKT("LINESTRING(179 10, -179 10)");
Geometry linestring2 = geomFromEWKT("LINESTRING(179 10, 181 10)");
Geometry polygon = geomFromEWKT("POLYGON((179 10, -179 10, -179 20, 179 20, 179 10))");
Copy link
Member

Choose a reason for hiding this comment

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

Please add a test for polygons with holes.

@jiayuasu jiayuasu added this to the sedona-1.6.0 milestone Feb 28, 2024
@jiayuasu jiayuasu merged commit a400788 into apache:master Feb 28, 2024
49 checks passed
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