st_example {geospark}R Documentation

Spark geometry example.

Description

Spark geometry example.

Usage

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

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")


[Package geospark version 0.3.1 Index]