st_example: Spark geometry example.

Description Usage Arguments Details Value Examples

View source: R/st_example.R

Description

Spark geometry example.

Usage

1
st_example(sc, geom = "polygons")

Arguments

sc

an object of spark connection

geom

a string of geometry type

Details

geometry can be "polygons" or "points"

Value

a data.frame contains wkt format column example

Examples

1
2
3
4
5
6
7
8
9
library(geospark)
library(sparklyr)
library(utils)

# use the proper master, like 'local', 'yarn', etc.
sc <- spark_connect(master = "spark://HOST:PORT")

st_example(sc, "polygons")
st_example(sc, "points")

geospark documentation built on March 2, 2020, 9:06 a.m.