st_cast_sfc_default: Coerce geometry to MULTI* geometry

View source: R/cast_sfc.R

st_cast_sfc_defaultR Documentation

Coerce geometry to MULTI* geometry

Description

Mixes of POINTS and MULTIPOINTS, LINESTRING and MULTILINESTRING, POLYGON and MULTIPOLYGON are returned as MULTIPOINTS, MULTILINESTRING and MULTIPOLYGONS respectively

Usage

st_cast_sfc_default(x)

Arguments

x

list of geometries or simple features

Details

Geometries that are already MULTI* are left unchanged. Features that can't be cast to a single MULTI* geometry are return as a GEOMETRYCOLLECTION


r-spatial/sf documentation built on April 23, 2024, 8:36 a.m.