Obtain the 'PROJ4' string from an object, if it has one. Supported inputs include raster, sf, sp, and silicate.

crs_proj(x, ...)

Arguments

x

object with 'PROJ4' string

...

ignored

Value

character string (or NA)

References

PROJ system website

See also

Examples

crs_proj(sfx)
#> [1] "+proj=longlat +datum=WGS84 +no_defs"
crs_proj(sfx$geom)
#> [1] "+proj=longlat +datum=WGS84 +no_defs"