Description Usage Arguments Value See Also Examples
Takes any number of features and returns a rectangular data-Polygon that encompasses all vertices.
1 | lawn_envelope(fc, lint = FALSE)
|
fc |
A data-Feature or data-FeatureCollection |
lint |
(logical) Lint or not. Uses geojsonhint. Takes up increasing
time as the object to get linted increases in size, so probably use by
default for small objects, but not for large if you know they are good
geojson objects. Default: |
a rectangular data-Feature<(data-Polygon)> that encompasses all vertices
Other measurements:
lawn_along()
,
lawn_area()
,
lawn_bbox_polygon()
,
lawn_bbox()
,
lawn_bearing()
,
lawn_center_of_mass()
,
lawn_center()
,
lawn_centroid()
,
lawn_destination()
,
lawn_distance()
,
lawn_extent()
,
lawn_line_distance()
,
lawn_midpoint()
,
lawn_point_on_feature()
,
lawn_pt2line_distance()
,
lawn_square()
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 27 28 29 30 31 32 33 34 35 36 37 38 39 | fc <- '{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"name": "Location A"
},
"geometry": {
"type": "Point",
"coordinates": [-75.343, 39.984]
}
}, {
"type": "Feature",
"properties": {
"name": "Location B"
},
"geometry": {
"type": "Point",
"coordinates": [-75.833, 39.284]
}
}, {
"type": "Feature",
"properties": {
"name": "Location C"
},
"geometry": {
"type": "Point",
"coordinates": [-75.534, 39.123]
}
}
]
}'
lawn_envelope(fc)
## Not run:
fc %>% view
lawn_envelope(fc) %>% view
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.