crop_sf: Crop sf

View source: R/bbox_functions.R

crop_sfR Documentation

Crop sf

Description

Crop an sf geometry object to a desired 4-sided shape. The shape is defined by a radius and a number of vertices. The radius is the distance from the center to the tangent point of each face. The crop center is the central point of the sf geometry point to crop round.

Usage

crop_sf(data, n_vertices = 4, radius = 10, crop_center = c(0, 0))

Arguments

data

sf geometry data.

n_vertices

Number of vertices crop will have.

radius

Radius of sf geometry crop.

crop_center

Central point of sf crop.

Value

sf geometry data.


wtumber/sfRotate documentation built on June 16, 2022, 8:40 a.m.