Creates optimal rectangle area around points

minBB(points, buffer = 0, epsg = 25832)

Arguments

points

a sf object, points you want to fly over

buffer

buffer distance between the points and the rectangle; defaults 0

epsg

reference system

Value

SpatialPoints: Corners of the flight area

Details

The code is based on a Rotating Caliper Algorithm and mostly copy and pasted (see reference)

References

http://dwoll.de/rexrepos/posts/diagBounding.html

Author

Marvin Ludwig