Ancillary function used to reproject bounding boxes; setting the parameter 'enlarge' allows to choose if the new one would be the one which completely include the old or if is simply the one obtained by reprojecting the upper-left and the lower-right corners.
reproj_bbox(bbox, in_proj, out_proj, enlarge = TRUE, N_dens = 1000)
bbox | The input bounding box (it can be a matrix in the bbox format or a vector in the format (xmin, ymin, xmax, ymax). |
---|---|
in_proj | The input projection (string format). |
out_proj | The output projection (string format). |
enlarge | Logical parameters: if TRUE, the reprojected bounding box is the one which completely include the original one; if FALSE, it is simply the one obtained by reprojecting the upper-left and the lower-right corners. |
N_dens | Densification ratio used in the case enlarge is TRUE. |
License: GPL 3.0