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.

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.

1 participant