-
Notifications
You must be signed in to change notification settings - Fork 695
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-336] Add RS_UpperLeftX and RS_UpperLeftY #935
Conversation
val df = sparkSession.read.format("binaryFile").load(resourceFolder + "raster/test1.tiff") | ||
val result = df.selectExpr("RS_UpperLeftX(RS_FromGeoTiff(content))").first().getDouble(0) | ||
val expected: Double = -1.3095817809482181E7 | ||
assertEquals(expected, result, 1e12) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will allow a difference of 10^12 while asserting equals. I think you mean 1e-12 which is 10^-12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for pointing it out.
val df = sparkSession.read.format("binaryFile").load(resourceFolder + "raster/test1.tiff") | ||
val result = df.selectExpr("RS_UpperLeftY(RS_FromGeoTiff(content))").first().getDouble(0) | ||
val expected: Double = 4021262.7487925636 | ||
assertEquals(expected, result, 1e8) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, I believe this is supposed to be 1e-8
Did you read the Contributor Guide?
Is this PR related to a JIRA ticket?
[SEDONA-XXX] my subject
.What changes were proposed in this PR?
How was this patch tested?
Did this PR include necessary documentation updates?
vX.Y.Z
format.