Partially compare two CRS objects
compareCRS.RdCompare CRS objects
Arguments
- x
CRS object, or object from which it can be extracted with
projection, or PROJ.4 format character string- y
same as
x- unknown
logical. Return
TRUEifxoryisTRUE- verbatim
logical. If
TRUEcomparexandy, verbatim (not partially)- verbose
logical. If
TRUE, messages about the comparison may be printed
Examples
compareCRS("+proj=lcc +lat_1=48 +lat_2=33 +lon_0=-100 +ellps=WGS84",
"+proj=longlat +datum=WGS84")
#> [1] FALSE
compareCRS("+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0",
"+proj=longlat +datum=WGS84")
#> [1] TRUE
compareCRS("+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0",
"+proj=longlat +datum=WGS84", verbatim=TRUE)
#> [1] FALSE
compareCRS("+proj=longlat +datum=WGS84", NA)
#> [1] FALSE
compareCRS("+proj=longlat +datum=WGS84", NA, unknown=TRUE)
#> [1] TRUE