lawn_dissolve | R Documentation |
Dissolves a FeatureCollection of polygons based on a property. Note that multipart features within the collection are not supported
lawn_dissolve(features, key, lint = FALSE)
features |
A data-FeatureCollection<(data-Polygon)> |
key |
(character) The property on which to filter |
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 data-FeatureCollection<(data-Polygon)> containing the dissolved polygons
Other assertions:
lawn_circle()
,
lawn_tesselate()
cat(lawn_data$filter_features) x <- '{ "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "combine": "yes" }, "geometry": { "type": "Polygon", "coordinates": [[[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]]] } }, { "type": "Feature", "properties": { "combine": "yes" }, "geometry": { "type": "Polygon", "coordinates": [[[0, -1], [0, 0], [1, 0], [1, -1], [0,-1]]] } }, { "type": "Feature", "properties": { "combine": "no" }, "geometry": { "type": "Polygon", "coordinates": [[[1,-1],[1, 0], [2, 0], [2, -1], [1, -1]]] } } ] }' lawn_dissolve(x, key = 'combine')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.