Random WKT point

wkt_point(count = 1, bbox = NULL, fmt = 7)

Arguments

count

(integer/numeric) number of points. Default: 1

bbox

(integer/numeric) lat/long bounding box from which to generate positions; numeric vector of the form west (long), south (lat), east (long), north (lat). optional

fmt

(integer/numeric) number of digits. Default: 7

Value

WKT; a character vector with one ore more POINT strings

Examples

wkt_point()
#> [1] "POINT (177.3290555 -24.6973475)"
wkt_point(10)
#> [1] "POINT (6.2946566 -24.6745885)" "POINT (-44.9494277 29.3703253)" #> [3] "POINT (178.7086565 -2.6245327)" "POINT (77.6913904 84.2767260)" #> [5] "POINT (-74.5312420 39.6702326)" "POINT (-33.2661989 34.4723334)" #> [7] "POINT (-154.3166387 29.5627741)" "POINT (54.8926276 -27.9621522)" #> [9] "POINT (114.3047319 22.8313120)" "POINT (138.6891246 -12.3051206)"
wkt_point(100)
#> [1] "POINT (137.1669006 -21.0904479)" "POINT (-128.5402816 -32.0683913)" #> [3] "POINT (45.7079866 -27.4307966)" "POINT (-27.4664121 27.6027422)" #> [5] "POINT (96.8572931 -10.0608138)" "POINT (143.4843920 -47.7867364)" #> [7] "POINT (-36.2497546 -68.4719802)" "POINT (-1.4432237 3.8304955)" #> [9] "POINT (-141.2119688 -55.9547924)" "POINT (-128.2307581 28.0099973)" #> [11] "POINT (-126.5533025 9.8751968)" "POINT (-140.7781175 30.3874019)" #> [13] "POINT (32.6315195 20.0881465)" "POINT (83.8693879 -27.1170920)" #> [15] "POINT (16.4604317 -27.8716608)" "POINT (156.0090152 30.8782049)" #> [17] "POINT (-78.1347402 34.5237695)" "POINT (-136.7850858 41.2596689)" #> [19] "POINT (7.7503985 -67.9700722)" "POINT (139.6341070 -15.8365015)" #> [21] "POINT (-61.4231095 -11.7970015)" "POINT (97.9781523 35.4315134)" #> [23] "POINT (30.3510118 -4.8272416)" "POINT (-146.7372086 15.1483027)" #> [25] "POINT (162.8745923 -64.0764914)" "POINT (-18.0803442 28.7091463)" #> [27] "POINT (-173.1937788 -26.2833142)" "POINT (163.0114737 6.8663283)" #> [29] "POINT (1.4444566 65.9072731)" "POINT (152.0908041 -57.9493285)" #> [31] "POINT (38.0331769 82.6737113)" "POINT (56.4683171 44.2781338)" #> [33] "POINT (-108.3021599 31.3807843)" "POINT (58.1666283 31.0925748)" #> [35] "POINT (-154.2420941 -24.1636235)" "POINT (-66.4571124 14.3739573)" #> [37] "POINT (113.4351870 36.7897304)" "POINT (-71.3051328 55.5438583)" #> [39] "POINT (-114.0047539 35.9016900)" "POINT (127.7854196 28.3059868)" #> [41] "POINT (160.3203388 -35.8362667)" "POINT (119.3694813 -13.7658417)" #> [43] "POINT (-20.2558937 -68.3183941)" "POINT (-121.6084667 38.9537173)" #> [45] "POINT (40.7165110 2.1222077)" "POINT (-37.3903569 21.2530213)" #> [47] "POINT (121.8150032 23.6777992)" "POINT (41.7822610 4.3467490)" #> [49] "POINT (158.1141441 80.9012392)" "POINT (-54.2061054 -7.6165550)" #> [51] "POINT (10.4245429 -15.9042644)" "POINT (-53.7134834 -58.0318342)" #> [53] "POINT (-9.3451599 -33.7981121)" "POINT (107.5451528 -49.2004178)" #> [55] "POINT (147.5437878 6.2533207)" "POINT (-75.7586418 23.1648853)" #> [57] "POINT (150.8487653 -60.6246337)" "POINT (61.7933976 14.9194048)" #> [59] "POINT (24.1673170 2.4531874)" "POINT (24.3895624 25.2724008)" #> [61] "POINT (93.4556863 32.8927671)" "POINT (-26.4580584 4.9812966)" #> [63] "POINT (75.5664332 25.1561098)" "POINT (98.3016946 -8.5761976)" #> [65] "POINT (-172.1535253 -33.0966487)" "POINT (-158.7135839 70.8570571)" #> [67] "POINT (86.7047739 -10.7568618)" "POINT (67.2036187 -28.0745789)" #> [69] "POINT (-14.0021254 -18.9049138)" "POINT (-179.6551403 -72.1628643)" #> [71] "POINT (-100.7411557 22.7893560)" "POINT (83.3639894 47.1374390)" #> [73] "POINT (-144.0590180 41.0889340)" "POINT (42.1853723 -21.5015635)" #> [75] "POINT (104.6066648 34.9949159)" "POINT (105.1239188 -10.6768054)" #> [77] "POINT (38.2548967 51.1200556)" "POINT (-109.5808902 80.3528443)" #> [79] "POINT (158.7134143 59.7211007)" "POINT (-130.7054950 19.5339864)" #> [81] "POINT (-3.7122150 40.8507546)" "POINT (-156.6218730 5.5472171)" #> [83] "POINT (-43.4151526 -54.9445673)" "POINT (-169.2192752 37.6189572)" #> [85] "POINT (64.6125737 -29.6653063)" "POINT (53.8335772 57.6546522)" #> [87] "POINT (35.8753162 -49.2900977)" "POINT (83.5333762 57.1289098)" #> [89] "POINT (119.7899323 -46.8370720)" "POINT (76.6673898 -30.9850381)" #> [91] "POINT (-135.9237902 37.7780453)" "POINT (-66.8958158 46.4633607)" #> [93] "POINT (125.2090369 1.6936822)" "POINT (-10.7126185 -35.5977295)" #> [95] "POINT (-67.3260218 22.4868247)" "POINT (-55.7440791 -41.0628595)" #> [97] "POINT (-81.3616206 7.9510964)" "POINT (-29.9167776 47.0018398)" #> [99] "POINT (67.0829035 40.9836598)" "POINT (152.4576397 -13.1491769)"
wkt_point(fmt = 5)
#> [1] "POINT (-66.37340 -38.27716)"
wkt_point(fmt = 6)
#> [1] "POINT (144.854676 48.538812)"
wkt_point(fmt = 7)
#> [1] "POINT (23.6005897 48.1348647)"
wkt_point(bbox = c(50, 50, 60, 60))
#> [1] "POINT (56.2759762 50.6760518)"