Description Usage Arguments Value See Also Examples
View source: R/multilinestring.R
Create a multilinestring
1 | lawn_multilinestring(coordinates, properties = NULL)
|
coordinates |
A list of positions. |
properties |
A list of properties. |
A data-Feature<(data-MultiLineString)>
Other data functions:
lawn_featurecollection()
,
lawn_feature()
,
lawn_filter()
,
lawn_geometrycollection()
,
lawn_linestring()
,
lawn_multipoint()
,
lawn_multipolygon()
,
lawn_point()
,
lawn_polygon()
,
lawn_random()
,
lawn_remove()
,
lawn_sample()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | mlstr <- '[
[
[-21.964416, 64.148203],
[-21.956176, 64.141316],
[-21.93901, 64.135924],
[-21.927337, 64.136673]
],
[
[-21.929054, 64.127985],
[-21.912918, 64.134726],
[-21.916007, 64.141016],
[-21.930084, 64.14446]
]
]'
lawn_multilinestring(mlstr)
lawn_multilinestring(mlstr,
properties = list(name = 'line1', distance = 145))
# Make a FeatureCollection
lawn_featurecollection(lawn_multilinestring(mlstr))
## Not run:
lawn_featurecollection(lawn_multilinestring(mlstr)) %>% view
## End(Not run)
|
<MultiLineString>
Bounding box: -22.0 64.1 -21.9 64.1
No. lines: 2
No. points: 16
Properties: NULL
<MultiLineString>
Bounding box: -22.0 64.1 -21.9 64.1
No. lines: 2
No. points: 16
Properties:
name: line1
distance: 145
<FeatureCollection>
Bounding box: -22.0 64.1 -21.9 64.1
No. features: 1
No. points: 16
Properties: NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.