powered by
Simplifies LineStrings, Polygons, and their Multi- counterparts.
simplify_geoms(x, epsilon)simplify_vw_geoms(x, epsilon)simplify_vw_preserve_geoms(x, epsilon)
simplify_vw_geoms(x, epsilon)
simplify_vw_preserve_geoms(x, epsilon)
an object of class rsgeo
rsgeo
an object of class of rsgeo
a tolerance parameter. Cannot be equal to or less than 0.
Simplify functions use the Ramer–Douglas–Peucker algorithm. Functions with vw use the Visvalingam-Whyatt algorithm.
vw
For more see geo docs.
geo
x <- geom_linestring(1:100, runif(100, 5, 10)) simplify_geoms(x, 3) simplify_vw_geoms(x, 2) simplify_vw_preserve_geoms(x, 100)
Run the code above in your browser using DataLab