Learn R Programming

move (version 2.1.0)

equalProj: Checks projections for being equal

Description

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, like DBBMM or Raster objects, returning the projection string with with the function proj4string

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 proj4 string.

Examples

Run this code
# NOT RUN {
data(ricky)
data(leroy)
data(leroydbbmm)
equalProj(list(leroydbbmm,leroydbbmm))
  equalProj(list(leroy,leroydbbmm))
  equalProj(list(leroy,ricky))
# }

Run the code above in your browser using DataLab