Description Usage Arguments Value Examples
View source: R/wkt_linestring.R
Random WKT linestring
1 2 | wkt_linestring(count = 1, num_vertices = 10, max_length = 1e-04,
max_rotation = pi/8, bbox = NULL, fmt = 7)
|
count |
(integer/numeric) number of Polygons. Default: 1 |
num_vertices |
(integer/numeric) how many coordinates each polygon will contain. Default: 10 |
max_length |
(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 |
max_rotation |
(integer/numeric) the maximum number of radians that a line segment can turn from the previous segment. Default: pi / 8 |
bbox |
(integer/numeric) lat/long bounding box for the starting point of
the line, numeric vector of the form |
fmt |
(integer/numeric) number of digits. Default: 7 |
WKT; a character vector with one or more LINESTRING strings
1 2 3 4 | wkt_linestring()
wkt_linestring(10)
wkt_linestring(num_vertices = 4)
wkt_linestring(bbox = c(50, 50, 60, 60))
|
[1] "LINESTRING (160.9054627 40.9327940, 160.9054764 40.9327080, 160.9054949 40.9326253, 160.9054812 40.9325904, 160.9054833 40.9325820, 160.9054799 40.9325563, 160.9054895 40.9325356, 160.9054436 40.9324848, 160.9054537 40.9324736, 160.9054232 40.9324425)"
[1] "LINESTRING (179.9065831 60.2703332, 179.9065219 60.2704085, 179.9066470 60.2704665, 179.9066027 60.2704863, 179.9067252 60.2705563, 179.9065773 60.2706050, 179.9066721 60.2706474, 179.9065790 60.2706971, 179.9067565 60.2707329, 179.9067129 60.2707475)"
[2] "LINESTRING (35.9175773 35.1968920, 35.9175386 35.1968553, 35.9175468 35.1968501, 35.9175366 35.1968473, 35.9175496 35.1968414, 35.9174575 35.1968015, 35.9174696 35.1967967, 35.9174666 35.1967954, 35.9174877 35.1967845, 35.9174859 35.1967825)"
[3] "LINESTRING (100.1867499 -14.8048557, 100.1868402 -14.8048947, 100.1867548 -14.8049421, 100.1868287 -14.8050010, 100.1867492 -14.8050534, 100.1867697 -14.8050799, 100.1867357 -14.8051110, 100.1867430 -14.8051248, 100.1867120 -14.8051653, 100.1867264 -14.8052055)"
[4] "LINESTRING (50.2812841 43.4807652, 50.2813851 43.4807571, 50.2814573 43.4807660, 50.2814640 43.4807669, 50.2815697 43.4807991, 50.2815875 43.4808089, 50.2815968 43.4808147, 50.2816514 43.4808556, 50.2817244 43.4808772, 50.2817910 43.4809086)"
[5] "LINESTRING (128.9853767 -0.8887329, 128.9853772 -0.8887131, 128.9853848 -0.8886389, 128.9853756 -0.8885971, 128.9853891 -0.8885019, 128.9853993 -0.8884469, 128.9854103 -0.8884229, 128.9854127 -0.8884176, 128.9854137 -0.8884077, 128.9854359 -0.8883471)"
[6] "LINESTRING (-63.4627465 -27.5789175, -63.4627357 -27.5788979, -63.4627615 -27.5788673, -63.4627092 -27.5788199, -63.4627334 -27.5788072, -63.4627245 -27.5788027, -63.4627889 -27.5787298, -63.4627694 -27.5786910, -63.4627827 -27.5786537, -63.4627228 -27.5785724)"
[7] "LINESTRING (106.3202675 61.0241834, 106.3202100 61.0242686, 106.3202024 61.0243470, 106.3201458 61.0244281, 106.3201475 61.0244429, 106.3201472 61.0244435, 106.3201776 61.0244792, 106.3201674 61.0245607, 106.3201327 61.0246359, 106.3201582 61.0246766)"
[8] "LINESTRING (-61.4083023 -55.4391439, -61.4082313 -55.4392303, -61.4082255 -55.4392539, -61.4081762 -55.4393072, -61.4081683 -55.4393343, -61.4081626 -55.4393794, -61.4081457 -55.4394105, -61.4081075 -55.4394477, -61.4080718 -55.4394820, -61.4080431 -55.4395102)"
[9] "LINESTRING (91.6994895 24.8810595, 91.6994888 24.8810590, 91.6994417 24.8810159, 91.6994327 24.8810101, 91.6993976 24.8809748, 91.6993525 24.8809567, 91.6993456 24.8809555, 91.6992427 24.8809384, 91.6991594 24.8809107, 91.6991466 24.8809043)"
[10] "LINESTRING (92.6137581 -62.6919843, 92.6137253 -62.6920660, 92.6136497 -62.6921372, 92.6134974 -62.6922065, 92.6134654 -62.6922111, 92.6133974 -62.6922246, 92.6133905 -62.6922265, 92.6133268 -62.6922325, 92.6131439 -62.6922337, 92.6130809 -62.6922243)"
[1] "LINESTRING (30.1595002 15.7134842, 30.1594972 15.7135574, 30.1595235 15.7136350, 30.1595023 15.7137221)"
[1] "LINESTRING (52.3332207 54.0954828, 52.3332562 54.0954892, 52.3332147 54.0954935, 52.3333151 54.0955048, 52.3332842 54.0955134, 52.3333943 54.0955371, 52.3333288 54.0955415, 52.3333927 54.0955359, 52.3333159 54.0955145, 52.3333615 54.0954942)"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.