Description Usage Arguments Examples
View source: R/sdf_interface.R
Import data from a spatial RDD into a Spark Dataframe.
1 2 |
x |
A spatial RDD. |
name |
Name to assign to the resulting Spark temporary view. If unspecified, then a random name will be assigned. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | library(sparklyr)
library(sparklyr.sedona)
sc <- spark_connect(master = "spark://HOST:PORT")
if (!inherits(sc, "test_connection")) {
input_location <- system.file(
file.path("extdata", "polygon.json"), package = "sparklyr.sedona"
)
rdd <- sedona_read_geojson_to_typed_rdd(
sc,
location = input_location,
type = "polygon"
)
sdf <- sdf_register(rdd)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.