This is an automated email from the ASF dual-hosted git repository.

jiayu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-sedona.git


The following commit(s) were added to refs/heads/master by this push:
     new 058d21a2 [SEDONA-216] Upgrade jts version to 1.19.0 (#729)
058d21a2 is described below

commit 058d21a229d21af90ffbd79d410ddf23c756d38f
Author: awadhesh singh <[email protected]>
AuthorDate: Tue Dec 13 03:49:09 2022 +0530

    [SEDONA-216] Upgrade jts version to 1.19.0 (#729)
    
    Co-authored-by: awadhesh tanwar <[email protected]>
---
 pom.xml                                                          | 2 +-
 sql/src/test/scala/org/apache/sedona/sql/functionTestScala.scala | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 9a5e8678..fb3495bf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -62,7 +62,7 @@
         <geotools.version>24.0</geotools.version>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <dependency.scope>provided</dependency.scope>
-        <jts.version>1.18.2</jts.version>
+        <jts.version>1.19.0</jts.version>
         <jts2geojson.version>0.16.1</jts2geojson.version>
         <netcdf.version>5.4.2</netcdf.version>
         <spark.version>3.3.0</spark.version>
diff --git a/sql/src/test/scala/org/apache/sedona/sql/functionTestScala.scala 
b/sql/src/test/scala/org/apache/sedona/sql/functionTestScala.scala
index 34b0581b..9562b1e2 100644
--- a/sql/src/test/scala/org/apache/sedona/sql/functionTestScala.scala
+++ b/sql/src/test/scala/org/apache/sedona/sql/functionTestScala.scala
@@ -303,7 +303,7 @@ class functionTestScala extends TestBaseScala with Matchers 
with GeometrySample
       val result = df.withColumn("multipolygon", 
expr("ST_MakeValid(multipolygon)")).collect()
 
       assert(result.length == 1)
-      assert(result.take(1)(0).get(0).asInstanceOf[Geometry].toText() == 
"POLYGON ((0 3, 3 3, 6 3, 6 0, 3 0, 0 0, 0 3))")
+      assert(result.take(1)(0).get(0).asInstanceOf[Geometry].toText() == 
"MULTIPOLYGON (((0 3, 3 3, 6 3, 6 0, 3 0, 0 0, 0 3)))")
     }
 
     it("Passed ST_MakeValid On Valid Polygon") {

Reply via email to