Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

st_subdivide

Return a collection of geometries resulting by subdividing a geometry


Description

Return a collection of geometries resulting by subdividing a geometry

Usage

st_subdivide(x, max_vertices)

Arguments

x

object with geometries to be subdivided

max_vertices

integer; maximum size of the subgeometries (at least 8)

Value

object of the same class as x

Examples

library(sf)
demo(nc, ask = FALSE, echo = FALSE)
x = st_subdivide(nc, 10)
plot(x[1])

lwgeom

Bindings to Selected 'liblwgeom' Functions for Simple Features

v0.2-6
GPL-2
Authors
Edzer Pebesma [aut, cre] (<https://orcid.org/0000-0001-8049-7069>), Colin Rundel [ctb], Andy Teucher [ctb], liblwgeom developers [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.