Last chance! 50% off unlimited learning
Sale ends in
Random WKT linestring
wkt_linestring(count = 1, num_vertices = 10, max_length = 1e-04,
max_rotation = pi/8, bbox = NULL, fmt = 7)
(integer/numeric) number of Polygons. Default: 1
(integer/numeric) how many coordinates each polygon will contain. Default: 10
(integer/numeric) maximum number of decimal degrees (1 degree = approximately 69 miles or 111 km) that a vertex can be from its predecessor. Default: 0.0001
(integer/numeric) the maximum number of radians that a line segment can turn from the previous segment. Default: pi / 8
(integer/numeric) lat/long bounding box for the starting point of
the line, numeric vector of the form west (long), south (lat), east
(long), north (lat)
. optional
(integer/numeric) number of digits. Default: 7
WKT; a character vector with one or more LINESTRING strings
# NOT RUN {
wkt_linestring()
wkt_linestring(10)
wkt_linestring(num_vertices = 4)
wkt_linestring(bbox = c(50, 50, 60, 60))
# }
Run the code above in your browser using DataLab