getCoords: Extract coordinates from a spatial object of lines and points

Description Usage Arguments Value Examples

View source: R/misc.R

Description

Get coordinates from a spatial object of lines and points. There is no ordering of points returned.Note: This differs from extractCoords in that the ordering of the points is NOT considered.

Usage

1
getCoords(myPoints)

Arguments

myPoints

spatial object of type SpatialCollections, SpatialPoints, or SpatialLines

Value

n x 2 matrix of coordinates

Examples

1
2
3
#Load sample line
exampleLine <- as(rmHoles(bgWater[2]), "SpatialLines")
getCoords(exampleLine)

hdirector/IceCastV2 documentation built on Dec. 9, 2018, 12:27 a.m.