Obtain the 'PROJ4' string from an object, if it has one. Supported inputs include raster, sf, sp, and silicate.
crs_proj(x, ...)
| x | object with 'PROJ4' string |
|---|---|
| ... | ignored |
character string (or NA)
crs_proj(sfx)#> [1] "+proj=longlat +datum=WGS84 +no_defs"crs_proj(sfx$geom)#> [1] "+proj=longlat +datum=WGS84 +no_defs"crs_proj(sfx_new) ## NA#> [1] NA