directly transform a set of coordinates

sf_project(from, to, pts, keep = FALSE)

Arguments

from

character; proj4string of pts

to

character; target coordinate reference system

pts

two-column numeric matrix, or object that can be coerced into a matrix

keep

logical value controlling the handling of unprojectable points. If `keep` is `TRUE`, then such points will yield `Inf` or `-Inf` in the return value; otherwise an error is reported and nothing is returned.