getRes: Get the spatial resolution of a spatial object.

Description Usage Arguments Value See Also Examples

Description

Get the spatial resolution of a spatial object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
getRes(x, ...)

## S4 method for signature 'ANY'
getRes(x)

## S4 method for signature 'geom'
getRes(x)

## S4 method for signature 'Raster'
getRes(x)

## S4 method for signature 'matrix'
getRes(x)

Arguments

x

the object from which to derive the resolution.

...

other arguments.

Value

A vector of two values of the spatial resolution of x in x and y dimension.

See Also

Other getters: getCRS(), getCols(), getExtent(), getFeatures(), getGroups(), getHistory(), getLayers(), getNames(), getPoints(), getRows(), getType(), getWindow()

Examples

1
2
3
4
5
getRes(x = gtGeoms$grid$continuous)

getRes(x = gtRasters$categorical)

getRes(x = matrix(0, 3, 5))

geometr documentation built on Sept. 21, 2021, 1:07 a.m.