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-505] Fix handling of geometries with SRID=0 in some raster functions #1256

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

Kontinuation
Copy link
Member

@Kontinuation Kontinuation commented Feb 27, 2024

Did you read the Contributor Guide?

Is this PR related to a JIRA ticket?

What changes were proposed in this PR?

The following RS functions do not perform implicit CRS transformation when the geometry has SRID=0:

  • RS_ZonalStats
  • RS_ZonalStatsAll
  • RS_WorldToRasterCoord
  • RS_WorldToRasterCoordX
  • RS_WorldToRasterCoordY

This behavior is inconsistent with other raster functions such as RS_Value, RS_Intersects, and RS_Clip. We'll change the behavior of listed functions to treat geometries with SRID=0 as if they were in EPSG:4326 and perform implicit CRS transformation if needed.

How was this patch tested?

Updated existing tests and added additional tests

Did this PR include necessary documentation updates?

  • No, this PR does not affect any public API so no need to change the docs.

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