View source: R/atlas_polygons.R
| polygons_to_sf | R Documentation |
Inverse of sf_to_polygons(). Uses sfheaders::sf_multipolygon() to build
MULTIPOLYGON geometries — sfheaders is pure Rcpp and has no GDAL/GEOS/PROJ
system dependencies, so the conversion itself does not require a full sf
installation. The returned object is an sf-class data frame, which downstream
users would manipulate using sf.
polygons_to_sf(polygons)
polygons |
A |
An sf-class data frame with columns label, view, geometry
(one row per label×view, geometry is MULTIPOLYGON).
Internal conversion primitive. For the atlas-level public API use
as_sf_atlas() / atlas_sf().
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.