Description Usage Arguments Value See Also Examples
This function extracts coordinates of vertices of a polygon or line from a SpatialPolygon, SpatialPolygonDataFrame, SpatiaLines, or SpatialLinesDataFrame.
1 | geomToCoords(x, n = NULL, out = "matrix", removeClose = TRUE)
|
x |
SpatialPolygon, SpatialPolygonDataFrame, SpatiaLines, SpatialLinesDataFrame, SpatialPoints, or SpatialPointsDataFrame. |
n |
|
out |
Character, either |
removeClose |
Logical, if |
A two-column matrix or a SpatialPoints object.
1 2 3 4 5 | data(mad0)
island <- subGeom(mad0, 1)
pts <- geomToCoords(island, 1)
plot(island)
points(pts)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.