You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sedona.apache.org by "furqaankhan (via GitHub)" <gi...@apache.org> on 2023/07/31 22:02:25 UTC
[GitHub] [sedona] furqaankhan commented on a diff in pull request #935: [SEDONA-336] Add RS_UpperLeftX and RS_UpperLeftY
furqaankhan commented on code in PR #935:
URL: https://github.com/apache/sedona/pull/935#discussion_r1279926349
##########
sql/common/src/test/scala/org/apache/sedona/sql/rasteralgebraTest.scala:
##########
@@ -403,6 +403,20 @@ class rasteralgebraTest extends TestBaseScala with BeforeAndAfter with GivenWhen
assertEquals(rasterDf.count(), binaryDf.count())
}
+ it("Passed RS_UpperLeftX"){
+ 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)
Review Comment:
Thank you for pointing it out.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org