Learn R Programming

apache.sedona (version 1.7.2)

new_bounding_box: Construct a bounding box object.

Description

Construct a axis-aligned rectangular bounding box object.

Usage

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

Value

A bounding box object.

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

Run this code
library(sparklyr)
library(apache.sedona)

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

Run the code above in your browser using DataLab