extraCrop: Get extra bbox area for sf::st_crop

View source: R/extraCrop.R

extraCropR Documentation

Get extra bbox area for sf::st_crop

Description

This function expands the st_crop boundary box by an specific amount. It is useful if you want to construct a grid from just points. If you happen to use only st_crop, you cannot get the full area that the grid would cover because the crop would only reach the center of the grid. By adding thi "specific amount" (half of the spatial resolution), all the grid area will be covered.

Usage

extraCrop(target, reference)

Arguments

target

The target grid centroids.

reference

Reference polygon used for the cropping.

Value

bbox


profesorpaiche/polilla documentation built on Nov. 3, 2023, 2:23 a.m.