You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sedona.apache.org by ji...@apache.org on 2021/09/29 03:43:13 UTC

[incubator-sedona] branch fix-wrong-match-order updated: Update GeometryCollectionSimplifier.scala

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

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


The following commit(s) were added to refs/heads/fix-wrong-match-order by this push:
     new e8bd752  Update GeometryCollectionSimplifier.scala
e8bd752 is described below

commit e8bd7527244e886836e4ad2a3f6178a9e086bf4f
Author: Jia Yu <ji...@apache.org>
AuthorDate: Tue Sep 28 20:43:06 2021 -0700

    Update GeometryCollectionSimplifier.scala
---
 .../sedona_sql/expressions/simplify/GeometryCollectionSimplifier.scala  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sql/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/simplify/GeometryCollectionSimplifier.scala b/sql/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/simplify/GeometryCollectionSimplifier.scala
index 8c7b645..5940816 100644
--- a/sql/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/simplify/GeometryCollectionSimplifier.scala
+++ b/sql/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/simplify/GeometryCollectionSimplifier.scala
@@ -35,8 +35,8 @@ object GeometryCollectionSimplifier {
       case string: LineString => LinestringSimplifier.simplify(string, epsilon, preserveCollapsed)
       case point: Point => point
       case polygon: Polygon => PolygonSimplifier.simplify(polygon, preserveCollapsed, epsilon)
-      case _ => null
       case collection: GeometryCollection => simplify(collection, preserveCollapsed, epsilon)
+      case _ => null      
     }.filter(_!=null).toArray
 
     val distinctGeometries = geometries.map(_.getGeometryType).distinct