thin_polygons: Thinning (simplification)

Description Usage Arguments Examples

View source: R/thin_polygons.R

Description

The function performs thinnedSpatialPoly on a sf object of polygons.

Usage

1
thin_polygons(sf_obj, tolerance)

Arguments

sf_obj

an objet of class "sf".

tolerance

the tolerance value in the metric of the input object (cf. function 'thinnedSpatialPoly').

Examples

1
2
3
4
5
vn <- gadm("vietnam", "sf", 0)
vn2 <- thin_polygons(vn, 0.1)

sp::plot(vn)
sp::plot(vn2)

choisy/sptools documentation built on Aug. 22, 2019, 12:57 p.m.