lawn_bbox: Make a bounding box from a polygon

View source: R/lawn_bbox.R View source: R/bbox_polygon.R

lawn_bboxR Documentation

Make a bounding box from a polygon

Description

Takes a polygon data-Polygon and returns a bbox

Usage

lawn_bbox(x, lint = FALSE)

Arguments

x

A FeatureCollection of data-Polygon features.

lint

(logical) Lint or not. Uses geojsonhint. Takes up increasing time as the object to get linted increases in size, so probably use by default for small objects, but not for large if you know they are good geojson objects. Default: FALSE

Value

A bounding box.

See Also

Other measurements: lawn_along(), lawn_area(), lawn_bbox_polygon(), lawn_bearing(), lawn_center_of_mass(), lawn_center(), lawn_centroid(), lawn_destination(), lawn_distance(), lawn_envelope(), lawn_extent(), lawn_line_distance(), lawn_midpoint(), lawn_point_on_feature(), lawn_pt2line_distance(), lawn_square()

Examples

bbox <- c(0, 0, 10, 10)
lawn_bbox(lawn_bbox_polygon(bbox))

ropensci/lawn documentation built on May 18, 2022, 9:58 a.m.