Skip to content

Conversation

@uros-db
Copy link
Contributor

@uros-db uros-db commented Oct 20, 2025

What changes were proposed in this pull request?

Extend the SpatialReferenceSystemMapper class to offer SRID <-> CRS mappings for both GeographyType and GeometryType.

The SpatialReferenceSystemMapper class was introduced originally as part of: #52491.

Why are the changes needed?

Avoid manual checks for GEOGRAPHY type, and use the centralized SRS mapping logic.

Also, this PR will make it easier to support additional SRID/CRS values for spatial types soon.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Added new tests to:

  • SpatialReferenceSystemMapperSuite

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions github-actions bot added the SQL label Oct 20, 2025
@uros-db uros-db changed the title [SPARK-51658][Geo][SQL] Support GEOGRAPHY and GEOMETRY in the SpatialReferenceSystemMapper [SPARK-53957][Geo][SQL] Support GEOGRAPHY and GEOMETRY in the SpatialReferenceSystemMapper Oct 20, 2025
Copy link
Contributor Author

@uros-db uros-db left a comment

Choose a reason for hiding this comment

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

@mkaravel @szehon-ho Please review.

@uros-db uros-db requested a review from mkaravel October 24, 2025 17:44
Copy link
Contributor

@mkaravel mkaravel left a comment

Choose a reason for hiding this comment

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

Thank you for addressing the review comments.

LGTM.

@uros-db
Copy link
Contributor Author

uros-db commented Oct 24, 2025

@cloud-fan Please review.

@uros-db
Copy link
Contributor Author

uros-db commented Oct 27, 2025

@cloud-fan This one should be good to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants