Return a polygon from (WGS84) coordinates
Usage
polygon_from_coords(coords, dfMaxLength = units::set_units(1, "km"))
Arguments
- coords
coordinates defining a polygon
- dfMaxLength
maximum length of a line segment. If
x
has geographical coordinates (long/lat),dfMaxLength
is either a numeric expressed in meter, or an object of classunits
with length unitsrad
ordegree
; segmentation in the long/lat case takes place along the great circle, using st_geod_segmentize.
See also
Other spatial:
bbox_at_distance()
,
bounding_box()
,
crs_tc()
,
filter_positions_at_range()
,
polygon_at_distance()