Examples for 'sf::geos_combine'


Combine or union feature geometries

Aliases: geos_combine st_combine st_union

Keywords:

### ** Examples

nc = st_read(system.file("shape/nc.shp", package="sf"))
Reading layer `nc' from data source 
  `/usr/local/R/4.2/site-library/sf/shape/nc.shp' using driver `ESRI Shapefile'
Simple feature collection with 100 features and 14 fields
Geometry type: MULTIPOLYGON
Dimension:     XY
Bounding box:  xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965
Geodetic CRS:  NAD27
st_combine(nc)
Geometry set for 1 feature 
Geometry type: MULTIPOLYGON
Dimension:     XY
Bounding box:  xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965
Geodetic CRS:  NAD27
MULTIPOLYGON (((-81.47276 36.23436, -81.54084 3...
plot(st_union(nc))
plot of chunk example-sf-geos_combine-1

[Package sf version 1.0-19 Index]