sp_simplify: Function to simplify spatial objects using the Douglas-Peuker...

View source: R/sp_simplify.R

sp_simplifyR Documentation

Function to simplify spatial objects using the Douglas-Peuker algorithm.

Description

Holes will appear between the geometries at times.

Usage

sp_simplify(sp, tolerance, preserve = TRUE)

Arguments

sp

Spatial object which is to be simplified.

tolerance

Tolerance value to be used by the Douglas-Peuker algorithm.

preserve

Should the algorithm attempt to preserve the topology? Default is TRUE.

Author(s)

Stuart K. Grange

Examples

## Not run: 

# Simplify an object
sp_simple <- sp_simplify(sp, 0.01)


## End(Not run)


skgrange/gissr documentation built on Feb. 24, 2024, 2:55 p.m.