Learn R Programming

geometr (version 0.2.10)

getWindow: Get the reference window of a spatial object.

Description

Get the reference window of a spatial object.

Usage

getWindow(x, ...)

# S4 method for ANY getWindow(x)

# S4 method for geom getWindow(x)

# S4 method for Spatial getWindow(x)

# S4 method for sf getWindow(x)

# S4 method for Raster getWindow(x)

# S4 method for 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

Run this code
# NOT RUN {
getWindow(x = gtGeoms$line)

getWindow(x = gtSP$SpatialLines)

getWindow(x = gtSF$multilinestring)

getWindow(x = gtRasters$categorical)

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

Run the code above in your browser using DataLab