Learn R Programming

geometr (version 0.1.1)

getPoints: Get the table of coordinates of a spatial object.

Description

Get the table of coordinates of a spatial object.

Usage

# S4 method for ANY
getPoints(x)

# S4 method for geom getPoints(x)

# S4 method for Spatial getPoints(x)

# S4 method for sf getPoints(x)

# S4 method for ppp getPoints(x)

Arguments

x

the object from which to extract the coordinates

Value

A table of the coordinates x is made up of.

See Also

Other getters: getCRS, getExtent, getHistory, getSubset, getTable, getType, getWindow

Examples

Run this code
# NOT RUN {
getPoints(gtGeoms$polygon)
getPoints(x = gtGeoms$point)

getPoints(x = gtSP$SpatialPoints)

getPoints(x = gtSF$multilinestring)

getPoints(x = gtPPP)
# }

Run the code above in your browser using DataLab