getWindow: Get the reference window of a spatial object.

Description Usage Arguments Value See Also Examples

Description

Get the reference window of a spatial object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
getWindow(x, ...)

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

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

## S4 method for signature 'Spatial'
getWindow(x)

## S4 method for signature 'sf'
getWindow(x)

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

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

Arguments

x

the object from which to derive the reference window.

...

other arguments.

Value

A tibble of the corner coordinates of the reference window of x. This table two columns (x and y) and two rows (minimum and maximum).

See Also

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

Examples

1
2
3
4
5
6
7
8
9
getWindow(x = gtGeoms$line)

getWindow(x = gtSP$SpatialLines)

getWindow(x = gtSF$multilinestring)

getWindow(x = gtRasters$categorical)

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

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