wkt_polygon {randgeo} | R Documentation |
Random WKT polygon
Description
Random WKT polygon
Usage
wkt_polygon(count = 1, num_vertices = 10, max_radial_length = 10,
bbox = NULL, fmt = 7)
Arguments
count |
(integer/numeric) number of Polygons. Default: 1 |
num_vertices |
(integer/numeric) how many coordinates each polygon will contain. Default: 10 |
max_radial_length |
(integer/numeric) maximum distance that a vertex can reach out of the center of the polygon. Units are in degrees latitude (Approximately 69 miles or 111 km). Default: 10 |
bbox |
(integer/numeric) lat/long bounding box for the centers of the
polygons, numeric vector of the form
|
fmt |
(integer/numeric) number of digits. Default: 7 |
Value
WKT; a character vector with one or more POLYGON strings
Examples
wkt_polygon()
wkt_polygon(num_vertices = 3)
wkt_polygon(num_vertices = 4)
wkt_polygon(num_vertices = 100)
wkt_polygon(10)
wkt_polygon(bbox = c(50, 50, 60, 60))
[Package randgeo version 0.3.0 Index]