Description Usage Arguments Details See Also Examples
Convert a FeatureCollection to a Feature
1 | as_feature(x)
|
x |
A data-FeatureCollection. |
If there are more than one feature within the featurecollection, each feature is split out into a separate feature, returned in a list. Each feature is assigned a class matching it's GeoJSON data type (e.g., point, polygon, linestring).
as.feature , which is similarly named, but has a different purpose
1 2 | as_feature(lawn_random())
# as_feature(lawn_random("polygons"))
|
[[1]]
<Point>
Bounding box: 157.6 -58.0 157.6 -58.0
Coordinates: 157.6 -58.0
Properties: NULL
[[2]]
<Point>
Bounding box: -128.2 87.9 -128.2 87.9
Coordinates: -128.2 87.9
Properties: NULL
[[3]]
<Point>
Bounding box: -150.8 -15.8 -150.8 -15.8
Coordinates: -150.8 -15.8
Properties: NULL
[[4]]
<Point>
Bounding box: 51.8 19.6 51.8 19.6
Coordinates: 51.8 19.6
Properties: NULL
[[5]]
<Point>
Bounding box: -60.1 -44.9 -60.1 -44.9
Coordinates: -60.1 -44.9
Properties: NULL
[[6]]
<Point>
Bounding box: -148.5 -59.4 -148.5 -59.4
Coordinates: -148.5 -59.4
Properties: NULL
[[7]]
<Point>
Bounding box: 88.9 14.6 88.9 14.6
Coordinates: 88.9 14.6
Properties: NULL
[[8]]
<Point>
Bounding box: 11.6 -37.3 11.6 -37.3
Coordinates: 11.6 -37.3
Properties: NULL
[[9]]
<Point>
Bounding box: -14.0 -55.6 -14.0 -55.6
Coordinates: -14.0 -55.6
Properties: NULL
[[10]]
<Point>
Bounding box: 104.0 58.2 104.0 58.2
Coordinates: 104.0 58.2
Properties: NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.