same.crs: Compare coordinate reference systems

View source: R/crs.R

same.crsR Documentation

Compare coordinate reference systems

Description

The function takes two coordinate reference system descriptions and compares them for equality.

Usage

same.crs(x, y)

Arguments

x

character, SpatRaster, SpatVector, CRS, or other object that returns something intelligible withcrs(x)

y

same types as for x

Value

logical

Examples

r <- rast()
same.crs(r, "+proj=longlat")

same.crs(r, "+proj=utm +zone=1")

rspatial/terra documentation built on April 28, 2024, 12:22 a.m.