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

Description Usage Arguments Value Examples

Description

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

Usage

1
get_coords(my_points)

Arguments

my_points

spatial object of type SpatialCollections, SpatialPoints, or SpatialLines

Value

n x 2 matrix of coordinates

Examples

1
2
3
#Load sample line
ex_line <- as(rm_holes(bg_water[2]), "SpatialLines")
get_coords(ex_line)

IceCast documentation built on June 24, 2019, 9:03 a.m.