Learn R Programming

geometr (version 0.2.5)

getWindow: Get the reference window of a spatial object.

Description

Get the reference window of a spatial object.

Usage

# 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 ppp 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.

Value

A table of the corners of the reference window of x.

See Also

Other getters: getCRS(), getExtent(), getFeatures(), getGroups(), getHistory(), getLayer(), getName(), getPoints(), getRes(), getType()

Examples

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

getWindow(x = gtSP$SpatialLines)

getWindow(x = gtSF$multilinestring)

getWindow(x = gtPPP)

getWindow(x = gtRasters$categorical)

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

Run the code above in your browser using DataLab