minimum_bounding_box | R Documentation |
Given a Sedona spatial RDD, find the axis-aligned minimal bounding box of the geometry represented by the RDD.
minimum_bounding_box(x)
x |
A Sedona spatial RDD. |
A minimum bounding box object.
Other Spatial RDD aggregation routine:
approx_count()
library(sparklyr)
library(apache.sedona)
sc <- spark_connect(master = "spark://HOST:PORT")
if (!inherits(sc, "test_connection")) {
input_location <- "/dev/null" # replace it with the path to your input file
rdd <- sedona_read_shapefile_to_typed_rdd(
sc,
location = input_location, type = "polygon"
)
boundary <- minimum_bounding_box(rdd)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.