powered by
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.
graphics::points()
graphics::lines()
graphics::polypath()
grid::pointsGrob()
grid::linesGrob()
grid::pathGrob()
wkb_coords(wkb, sep_na = FALSE)wkt_coords(wkt, sep_na = FALSE)
wkt_coords(wkt, sep_na = FALSE)
A data.frame with columns:
feature_id: The index of the top-level feature
feature_id
part_id: The part identifier, guaranteed to be unique for every simple geometry (including those contained within a multi-geometry or collection)
part_id
ring_id: The ring identifier, guaranteed to be unique for every ring.
ring_id
x, y, z, m: Coordinaate values (both absence and nan are recorded as NA)
x
y
z
m
nan
NA
A list() of raw() vectors, such as that returned by sf::st_as_binary().
list()
raw()
sf::st_as_binary()
Use TRUE to separate geometries and linear rings with a row of NAs. This is useful for generating output that can be fed directly to graphics::polypath() or graphics::lines() without modification.
TRUE
A character vector containing well-known text.
text <- c("LINESTRING (0 1, 19 27)", "LINESTRING (-1 -1, 4 10)") wkt_coords(text) wkt_coords(text, sep_na = TRUE)
Run the code above in your browser using DataLab