wkb_coords | R Documentation |
These functions are optimised for graphics output,
which in R require flat coordinate structures. See
graphics::points()
, graphics::lines()
,
and graphics::polypath()
for how to send these
to a graphics device, or grid::pointsGrob()
,
grid::linesGrob()
, and grid::pathGrob()
for how
to create graphical objects using this output.
wkb_coords(wkb, sep_na = FALSE) wkt_coords(wkt, sep_na = FALSE)
wkb |
A |
sep_na |
Use |
wkt |
A character vector containing well-known text. |
A data.frame with columns:
feature_id
: The index of the top-level feature
part_id
: The part identifier, guaranteed to be unique for every simple geometry
(including those contained within a multi-geometry or collection)
ring_id
: The ring identifier, guaranteed to be unique for every ring.
x
, y
, z
, m
: Coordinaate values (both absence and nan
are recorded
as NA
)
text <- c("LINESTRING (0 1, 19 27)", "LINESTRING (-1 -1, 4 10)") wkt_coords(text) wkt_coords(text, sep_na = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.