Skip to contents

Checks whether all objects of a list are in the same projection.

Usage

# S4 method for list
equalProj(x)

Arguments

x

a list of projected objects of class raster, move, moveStack, moveBurst, DBBMM, DBBMMStack, DBBMMBurstStack, dynBGB

Details

equalProj checks for equal projections using the function of identicalCRS from the package sp. It returns TRUE if none of the objects have a proj4string.

Value

TRUE or FALSE

It returns TRUE if none of the objects have a proj4string.

Author

Bart Kranstauber & Anne Scharf

Examples

data(fishers)
ricky<-fishers[['Ricky.T']]
data(leroy)
data(leroydbbmm)

equalProj(list(leroydbbmm,leroydbbmm))
#> [1] TRUE
equalProj(list(leroy,leroydbbmm))
#> [1] FALSE
equalProj(list(leroy,ricky))
#> [1] TRUE