This is an automated email from the ASF dual-hosted git repository.
jiayu pushed a commit to branch fix-example-projecs
in repository https://gitbox.apache.org/repos/asf/incubator-sedona.git
The following commit(s) were added to refs/heads/fix-example-projecs by this
push:
new 37afd45 Fix the st_pixelize usage
37afd45 is described below
commit 37afd45ea3d257eb464af81afc2c92f521088843
Author: Jia Yu <[email protected]>
AuthorDate: Fri May 14 17:44:17 2021 -0700
Fix the st_pixelize usage
---
examples/viz/src/main/scala/ScalaExample.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/viz/src/main/scala/ScalaExample.scala
b/examples/viz/src/main/scala/ScalaExample.scala
index 0f07a3d..502f221 100644
--- a/examples/viz/src/main/scala/ScalaExample.scala
+++ b/examples/viz/src/main/scala/ScalaExample.scala
@@ -192,7 +192,7 @@ object ScalaExample extends App{
"""
|CREATE OR REPLACE TEMP VIEW pixels AS
|SELECT pixel, shape FROM pointtable
- |LATERAL VIEW ST_Pixelize(shape, 256, 256,
ST_PolygonFromEnvelope(-126.790180,24.863836,-64.630926,50.000)) AS pixel
+ |LATERAL VIEW Explode(ST_Pixelize(shape, 256,
256, ST_PolygonFromEnvelope(-126.790180,24.863836,-64.630926,50.000))) AS pixel
""".stripMargin)
spark.sql(
"""