new_bounding_box: Construct a bounding box object.

Description Usage Arguments Examples

View source: R/bounding_box.R

Description

Construct a axis-aligned rectangular bounding box object.

Usage

1
new_bounding_box(sc, min_x = -Inf, max_x = Inf, min_y = -Inf, max_y = Inf)

Arguments

sc

The Spark connection.

min_x

Minimum x-value of the bounding box, can be +/- Inf.

max_x

Maximum x-value of the bounding box, can be +/- Inf.

min_y

Minimum y-value of the bounding box, can be +/- Inf.

max_y

Maximum y-value of the bounding box, can be +/- Inf.

Examples

1
2
3
4
5
library(sparklyr)
library(sparklyr.sedona)

sc <- spark_connect(master = "spark://HOST:PORT")
bb <- new_bounding_box(sc, -1, 1, -1, 1)

r-spark/sparklyr.sedona documentation built on Dec. 22, 2021, 11:56 a.m.