Learn R Programming

sf (version 1.0-7)

st_coordinates: retrieve coordinates in matrix form

Description

retrieve coordinates in matrix form

Usage

st_coordinates(x, ...)

Value

matrix with coordinates (X, Y, possibly Z and/or M) in rows, possibly followed by integer indicators L1,...,L3 that point out to which structure the coordinate belongs; for POINT this is absent (each coordinate is a feature), for LINESTRING

L1 refers to the feature, for MULTIPOLYGON

L1 refers to the main ring or holes, L2 to the ring id in the MULTIPOLYGON, and L3 to the simple feature.

Arguments

x

object of class sf, sfc or sfg

...

ignored