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/12/11 04:34:39 UTC

[incubator-sedona] branch master updated: [DOCS] Fix Adapter.toSpatialRdd API call

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 22406a6  [DOCS] Fix Adapter.toSpatialRdd API call
22406a6 is described below

commit 22406a6071ec316c7131bcaa782b013f27b5b331
Author: Jia Yu <ji...@apache.org>
AuthorDate: Fri Dec 10 20:34:35 2021 -0800

    [DOCS] Fix Adapter.toSpatialRdd API call
---
 docs/tutorial/rdd.md | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/docs/tutorial/rdd.md b/docs/tutorial/rdd.md
index e2bc8d7..f45b3fe 100644
--- a/docs/tutorial/rdd.md
+++ b/docs/tutorial/rdd.md
@@ -194,9 +194,11 @@ var spatialDf = sparkSession.sql(
 ```
 3. Use SedonaSQL DataFrame-RDD Adapter to convert a DataFrame to an SpatialRDD
 ```Scala
-var spatialRDD = Adapter.toRdd(spatialDf, "checkin")
+var spatialRDD = Adapter.toSpatialRdd(spatialDf, "checkin")
 ```
 
+"checkin" is the name of the geometry column
+
 For WKT/WKB/GeoJSON data, please use ==ST_GeomFromWKT / ST_GeomFromWKB / ST_GeomFromGeoJSON== instead.
 	
 ## Transform the Coordinate Reference System