compareGeom,GRaster,GRaster-method | R Documentation |
compareGeom()
compares geographic metadata between two or more GRaster
s and/or GVector
s. In many cases, spatial objects must be comparable for them to "interact" (e.g., conducting arithmetic operations, masking, etc.).
## S4 method for signature 'GRaster,GRaster'
compareGeom(
x,
y,
...,
location = TRUE,
mapset = TRUE,
topo = TRUE,
lyrs = FALSE,
crs = TRUE,
ext = TRUE,
zext = TRUE,
rowcol = TRUE,
depths = TRUE,
res = TRUE,
zres = TRUE,
stopOnError = TRUE,
messages = TRUE
)
## S4 method for signature 'GVector,GVector'
compareGeom(
x,
y,
...,
location = TRUE,
mapset = TRUE,
topo = FALSE,
crs = TRUE,
ext = FALSE,
zext = FALSE,
geometry = FALSE,
stopOnError = TRUE,
messages = TRUE
)
## S4 method for signature 'GRaster,GVector'
compareGeom(
x,
y,
...,
location = TRUE,
mapset = TRUE,
topo = FALSE,
crs = TRUE,
ext = FALSE,
zext = FALSE,
stopOnError = TRUE,
messages = TRUE
)
## S4 method for signature 'GVector,GRaster'
compareGeom(
x,
y,
...,
location = TRUE,
mapset = TRUE,
topo = FALSE,
crs = TRUE,
ext = FALSE,
zext = FALSE,
stopOnError = TRUE,
messages = TRUE
)
x , y , ... |
|
location , mapset |
Logical: Compare GRASS "project/location" and "mapsets" (see |
topo |
Logical: Test for same topology (2D or 3D). By default, this is |
lyrs |
Logical (rasters only): Compare number of layers of "stacked" rasters. Note this is different from number of vertical "depths" of a raster. Default is |
crs |
Logical: Compare coordinate reference systems. Default is |
ext |
Logical: If |
zext |
Logical: Test for same vertical extents (3D only). By default, this is |
rowcol |
Logical (rasters only): Test for same number of rows and columns. Default is |
depths |
Logical (rasters only): Test for same number of depths. Default is |
res |
Logical (rasters only): Test for same resolution in x- and y-dimensions. Default is |
zres |
Logical (rasters only): Test for same resolution in z dimension. Default is |
stopOnError |
Logical: If |
messages |
Logical: If |
geometry |
Logical (vector-vector comparison only): Compare geometry. Default is |
Logical (invisibly): TRUE
for no mismatches detected, FALSE
for incompatibility), or side effect of throwing an error.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.