as_featurecollection: As featurecollection

Description Usage Arguments Examples

View source: R/as_featurecollection.R

Description

Helper function to make a FeatureCollection list object for use in vizualizing, e.g., with leaflet

Usage

1

Arguments

x

(list) GeoJSON as a list

Examples

1
2
3
4
str <- 'MULTIPOINT ((100.000 3.101), (101.000 2.100), (3.140 2.180),
(31.140 6.180), (31.140 78.180))'
x <- wkt2geojson(str, fmt = 2)
as_featurecollection(x)

wellknown documentation built on May 26, 2021, 1:06 a.m.