Compare coordinate reference systems
same.crs.Rd
The function takes two coordinate reference system descriptions and compares them for equality.
Arguments
- x
character, SpatRaster, SpatVector, CRS, or other object that returns something intelligible with
crs(x)
- y
same types as for
x
Examples
r <- rast()
same.crs(r, "+proj=longlat")
#> [1] TRUE
same.crs(r, "+proj=utm +zone=1")
#> [1] FALSE