Description Usage Arguments Value See Also Examples
Takes a bounding box and calculates the minimum square bounding box that would contain the input.
1 | lawn_square(bbox)
|
bbox |
A bounding box. |
A square surrounding bbox, numeric vector of length four.
Other measurements:
lawn_along()
,
lawn_area()
,
lawn_bbox_polygon()
,
lawn_bbox()
,
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()
1 2 3 4 5 6 7 8 | bbox <- c(-20, -20, -15, 0)
lawn_square(bbox)
## Not run:
sq <- lawn_square(bbox)
lawn_featurecollection(list(lawn_bbox_polygon(bbox),
lawn_bbox_polygon(sq))) %>% view
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.