Skip to content

Conversation

@uros-db
Copy link
Contributor

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

What changes were proposed in this pull request?

Implement the Spatial Reference System Mapper classes to offer SRID <-> CRS mappings in PySpark, for both GeographyType and GeometryType.

On JVM / Scala side, the SpatialReferenceSystemMapper class was introduced originally as part of: #52491, and then subsequently extended in: #52667.

Why are the changes needed?

Use centralized SRS mapping logic in PySpark, same as we currently do in Scala types.

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?

Updated tests in:

  • test_geographytype
  • test_geometrytype

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

No.

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.

@uros-db uros-db requested a review from zhengruifeng October 31, 2025 00:31
@zhengruifeng
Copy link
Contributor

merged to master

huangxiaopingRD pushed a commit to huangxiaopingRD/spark that referenced this pull request Nov 25, 2025
…n PySpark

### What changes were proposed in this pull request?
Implement the Spatial Reference System Mapper classes to offer SRID <-> CRS mappings in PySpark, for both `GeographyType` and `GeometryType`.

On JVM / Scala side, the `SpatialReferenceSystemMapper` class was introduced originally as part of: apache#52491, and then subsequently extended in: apache#52667.

### Why are the changes needed?
Use centralized SRS mapping logic in PySpark, same as we currently do in Scala types.

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?
Updated tests in:
- `test_geographytype`
- `test_geometrytype`

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

Closes apache#52799 from uros-db/geo-srsMapper-python.

Authored-by: Uros Bojanic <[email protected]>
Signed-off-by: Ruifeng Zheng <[email protected]>
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