View source: R/optimalBoundingBox.R
minBB | R Documentation |
Creates optimal rectangle area around points
minBB(points, buffer = 0, epsg = 25832)
points |
a sf object, points you want to fly over |
buffer |
buffer distance between the points and the rectangle; defaults 0 |
epsg |
reference system |
The code is based on a Rotating Caliper Algorithm and mostly copy and pasted (see reference)
SpatialPoints: Corners of the flight area
Marvin Ludwig
http://dwoll.de/rexrepos/posts/diagBounding.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.