wk_linestring | R Documentation |
Create lines, polygons, and collections
wk_linestring(handleable, feature_id = 1L, ..., geodesic = NULL)
wk_polygon(handleable, feature_id = 1L, ring_id = 1L, ..., geodesic = NULL)
wk_collection(
handleable,
geometry_type = wk_geometry_type("geometrycollection"),
feature_id = 1L,
...
)
wk_linestring_filter(handler, feature_id = 1L)
wk_polygon_filter(handler, feature_id = 1L, ring_id = 1L)
wk_collection_filter(
handler,
geometry_type = wk_geometry_type("geometrycollection"),
feature_id = 1L
)
handleable |
A geometry vector (e.g., |
feature_id |
An identifier where changes in sequential values indicate a new feature. This is recycled silently as needed. |
... |
Passed to the |
geodesic |
Use |
ring_id |
An identifier where changes in sequential values indicate a new ring. Rings are automatically closed. This is recycled silently as needed. |
geometry_type |
The collection type to create. |
handler |
A wk_handler object. |
An object of the same class as handleable
with
whose coordinates have been assembled into the given
type.
wk_linestring(xy(c(1, 1), c(2, 3)))
wk_polygon(xy(c(0, 1, 0), c(0, 0, 1)))
wk_collection(xy(c(1, 1), c(2, 3)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.