Kristin Cowalcijk created SEDONA-722:
----------------------------------------
Summary: RS_RasterToWorldCoord* loses precision
Key: SEDONA-722
URL: https://issues.apache.org/jira/browse/SEDONA-722
Project: Apache Sedona
Issue Type: Bug
Reporter: Kristin Cowalcijk
Fix For: 1.8.0
The coordinates returned by {{RS_RasterToWorldCoord*}} functions are not double
precision floating points. These coordinates were computed as single precision
float. This will lead to imprecise results. Here is an example:
{code:python}
spark.sql("SELECT RS_RasterToWorldCoordX(RS_MakeEmptyRaster(1, 10, 10, 0.0,
0.0, 0.123456789), 11, 11)").show()
{code}
The actual result is:
{code}
1.2345678806304932
{code}
The expected result is:
{code}
1.23456789
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)