View source: R/utils-spatial.R
polygon_from_coords | R Documentation |
Return a polygon from (WGS84) coordinates
polygon_from_coords(coords, dfMaxLength = units::set_units(1, "km"))
coords |
coordinates defining a polygon |
dfMaxLength |
maximum length of a line segment. If |
an sf polygon
Other spatial:
bbox_at_distance()
,
bounding_box()
,
crs_tc()
,
filter_positions_at_range()
,
polygon_at_distance()
## Not run:
coords <- list(rbind(c(0, 0), c(1, 0), c(1, 1), c(0.5, 1.5), c(0, 1), c(0, 0)))
polygon_from_coords(coords)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.